Easy FancyBox
1st image clicked in Gallery in sidebar doesn't display title (2 posts)

  1. Lindsay Heydon
    Posted 1 year ago #

    I'm using your plugin and WP-Property which also uses fancybox. I've stopped their script being run on the property page.

    But I still have a small issue in that the first picture I click in the sidebar (and it can be any picture I click on) does not display the title. Do you have any pointers as to why this might be so I can investigate further.

    Many thanks.


  2. RavanH
    Plugin Author

    Posted 1 year ago #

    FancyBox takes the title from either the link "title" attribute or (when there is no title attribute) the thumbnail "alt" attribute. So your sidebar image link code should look like this for example:

    <a href="..." title="the title"><img src="..." alt="the backup title" /></a>

    But if the source code does not include any of these attributes, then there can be no title in the lightbox.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.