WordPress.org

Forums

Responsive Image Gallery
Adding title to images??? (3 posts)

  1. unapanda
    Member
    Posted 1 year ago #

    Please help me, don't really have any coding experience.
    Looking for most simple solution to add title/description to the bottom of images when opened with this fancybox?
    Any help appreciated!
    http://jesseavdeikov.com/works

    http://wordpress.org/plugins/responsive-image-gallery/

  2. unapanda
    Member
    Posted 1 year ago #

    *	Title helper
    	 */
    
    	F.helpers.title = {
    		defaults : {
    			type     : 'float', // 'float', 'inside', 'outside' or 'over',
    			position : 'bottom' // 'top' or 'bottom'
    		},
    
    		beforeShow: function (opts) {
    			var current = F.current,
    				text    = current.title,
    				type    = opts.type,
    				title,
    				target;
    
    			if ($.isFunction(text)) {
    				text = text.call(current.element, current);
    			}
    
    			if (!isString(text) || $.trim(text) === '') {
    				return;
    			}
    
    			title = $('<div class="fancybox-title fancybox-title-' + type + '-wrap">' + text + '</div>');
    
    			switch (type) {
    				case 'inside':
    					target = F.skin;
    				break;
    
    				case 'outside':
    					target = F.wrap;
    				break;
    
    				case 'over':
    					target = F.inner;
    				break;
    
    				default: // 'float'
    					target = F.skin;
    
    					title.appendTo('body');
    
    					if (IE) {
    						title.width( title.width() );
    					}
    
    					title.wrapInner('<span class="child"></span>');
  3. jomit
    Member
    Posted 1 year ago #

    Hi there,

    I have a similar problem: The image descriptions need to show up in the fancybox. Since I found out, that the responsive gallery uses it's own image descriptions (from the admin menu Responsive Gallery->Gallery Misc) and not the ones that WP stores, I still don't see a way to get them into the fancybox that shows up when an image is clicked by the user.

    The description shows up in the thumnail when hovered but I would need it as a caption on the larger image as well to display the photographer's name.

    Has anyone experience with this? Is there a hook that can be used to overwrite the markup for the gallery?

    Thank you in advance!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Responsive Image Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic