Fancybox Show alt or title

  • In Progress
    Posted in: Aegaeus WP Theme  
  • Customer
    olidax
    April 25, 2015 at 5:42 pm #37030

    I would like to have my alt and/or title tags displayed in the fancybox overlay.

    I found fancybox settings in the /scripts/jquery.custom.js
    Starting at row 437 – I changed

    	if(jQuery().fancybox) {
    			jQuery("a.fancybox").fancybox({
    				'transitionIn'	:	'fade',
    				'transitionOut'	:	'fade',
    				'speedIn'		:	300, 
    				'speedOut'		:	300, 
    				'overlayShow'	:	true,
    				'autoScale'		:	true,
    				'titleShow'		: 	false,
    				'margin'		: 	10
    			});
    			
    			jQuery("a.fancy-iframe").fancybox({
    				'type'			: 'iframe'
    			});
    	}

    to

    	if(jQuery().fancybox) {
    			jQuery("a.fancybox").fancybox({
    				'transitionIn'	:	'fade',
    				'transitionOut'	:	'fade',
    				'speedIn'		:	300, 
    				'speedOut'		:	300, 
    				'overlayShow'	:	true,
    				'autoScale'		:	true,
    				'titleShow'		: 	true,
    				'titlePosition'	: 	'over',
    				'margin'		: 	10
    			});
    			
    			jQuery("a.fancy-iframe").fancybox({
    				'type'			: 'iframe'
    			});
    	}

    but there is still no title displayed.
    I do have a custom function to add the class=”fancybox” to all my images, so I don’t need to do it manually when adding images.

    Hope you can help.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.