Easy FancyBox
[resolved] using new titleFromAlt function (5 posts)

  1. maxrogers
    Posted 5 years ago #


    I am trying to get the new titleFromAlt function working that was implemented in FancyBox v1.3.2. See JFK's post below:


    I changed titleFromAlt in /easy-fancybox/fancybox/jquery.fancybox-1.3.3.js to true:
    titleFromAlt : true,

    I changed /easy-fancybox/fancybox/jquery.fancybox-1.3.3.pack.js to true:

    I also changed /easy-fancybox/easy-fancybox.php

    if( "over" == get_option("fancybox_titlePosition", $easy_fancybox_array['titlePosition']['default']) )
    		'onComplete'	: function() {
    			$('#fancybox-wrap').hover(function() {
    			}, function() {
    		'autoDimensions': false,
    		'titleFromAlt'	: true

    Any idea why title from alt isn't working?! Thanks a ton!


  2. RavanH
    Plugin Author

    Posted 5 years ago #


    I think there is a slight problem with titleFromAlt in 1.3.3. Currently I am working on a new version of Easy FancyBox which among some major new features includes the latest FancyBox 1.3.4 and in which I have activated titleFromAlt by default... So far it seems to work so if you have some patience, and upgrade the plugin as soon as it is available, you should be fine.

    But to prevent any misunderstandings: the titleFromAlt parameter is supposed to make FancyBox use the alt-tag from the thumbnail < img > , not any alt-tag that you have set for the < a > link. Hope that's clear ;)


  3. maxrogers
    Posted 5 years ago #


    Thanks for the quick response! That is really great news!

    Thanks for the clarification also. Luckily for me that is exactly what I want to do! (use the alt tag of the thumbnail <img>!)

    I sent you a message on Facebook!

  4. Jixop
    Posted 5 years ago #

    Related to this:
    Is there a way to get a title when you are not using a thumbnail?
    As said alt-tag set for the < a > link does not work.

  5. RavanH
    Plugin Author

    Posted 5 years ago #

    Hi Jixop, uncheck the 'Get title from alt tag' option (because you want title from title tag) and give your link a title tag. Like <a href="your.jpg" title="my jpg">link text</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic