Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21534
    gerbedan
    Participant

    Hi,
    Thanks a lot for the great plugin – I really like the way it looks and works!

    With one exception:
    I cannot display titles (and/or captions) in the Lightbox using the FancyBox layout. (http://illuscience.ch/?page_id=2)
    Using the prettyPhoto, the alternative titles are displayed…

    People seemed to have the same problem earlier, however, using the old approach and adding the following code into funcitons.php did not solve it for me.

    function df_add_title_attachment_link($link, $id = null) {
    $id = intval( $id );
    $_post = get_post( $id );
    $post_title = esc_attr( $_post->post_title );
    return str_replace(‘<a href’, ‘<a title=”‘. $post_title .'” href’, $link);
    }
    add_filter(‘wp_get_attachment_link’, ‘df_add_title_attachment_link’, 10, 2);

    I would be really greatefull for any working solution.

    Cheers,
    Daniel

    #21775
    Micko
    Participant

    This is still actual problem…anyone has a solution?

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