Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1245
    Ben Jones
    Participant

    Hi,

    Great plugin! Love the different lightboxes and various options which are available.

    After the last update, FancyBox doesn’t show the ‘title’ any more – the settings seem to have no effect and the title element – id=”fancybox-title” – is empty with a display:none style.

    Cheers,
    Ben.

    #1246
    Bartosz
    Keymaster

    Hi Ben,

    Please post a link to your site, we’ll take a look.

    #1247
    Ben Jones
    Participant

    Thanks Bartosz.

    http://octopod.org/wordpress/bom-radar-widget/

    There is a gallery near the top. I just updated WordPress and the plugin, before that it was showing the title OK.

    #1250
    Bartosz
    Keymaster

    Did you update WordPress as well? Your gallery links don’t have title attribute applied that is why it is not display.

    #1260
    Ben Jones
    Participant

    I did update wordpress to 3.7.1. None of the image options in wordpress media management seem to make it to the fancybox title now though :(

    #1261
    Ben Jones
    Participant

    I did find setting the ‘titleFromAlt’ setting in the fancybox JS script did the trick and made it work like it used to. Line 1146 in assets/fancybox/jquery.fancybox-1.3.4.js. Not sure if this should be true if fancybox ‘show titles’ is true due to the way WP outputs its galleries or not.

    #1267
    Bartosz
    Keymaster

    Thanks for the feedback Ben, we’ll look into it.

    #1298
    Christian Thibault
    Participant

    Hi,

    I had the same problem. I used this filter in the functions.php file of my theme and it works fine now.

    function modify_attachment_link( $html, $id ) {
    $att_title = get_the_title($id);
    $html = str_replace( ‘<a href’, ‘<a title=”‘.$att_title.'” href’, $html );
    return $html;
    }
    add_filter( ‘wp_get_attachment_link’, ‘modify_attachment_link’, 10, 2 );

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.