WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. maxrogers
    Member
    Posted 3 years ago #

    RavanH,

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

    http://groups.google.com/group/fancybox/browse_thread/thread/d3d65d16ba8298bd/2e01346338f97106?lnk=gst&q=title#2e01346338f97106

    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:
    titleFromAlt:true

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

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

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

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

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    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 ;)

    RavanH

  3. maxrogers
    Member
    Posted 3 years ago #

    RavanH,

    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
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 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