WordPress.org

Forums

Easy FancyBox
use title instead of alt (6 posts)

  1. narwen
    Member
    Posted 4 years ago #

    Great plugin! Thank you very much, but I have some problems with titles. I would like to show titles from 'title' (not from 'alt'), but when I set 'titleFromAlt' false fancybox show nothing :( What am I doing wrong? Please, help me!

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 4 years ago #

    Are you setting the title attribute to the a tag or the img tag?

  3. narwen
    Member
    Posted 4 years ago #

    If I set 'titleFromAlt' true, it shows alt normally, but I want title, my html contain both title and alt text:

    <a href="url"><img src="http://" alt="THIS TEXT VISIBLE" title="AND THIS IS NOT" /></a>

  4. RavanH
    Member
    Plugin Author

    Posted 4 years ago #

    Try moving (or copying) the title to the A tag:

    <a href="url" title="image title here"><img src="http://" alt="alt text describing image here" /></a>
  5. narwen
    Member
    Posted 4 years ago #

    Yes, it shows correctly with title in tag a )

  6. narwen
    Member
    Posted 4 years ago #

    I get it! Thank you )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic