The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. unapanda
    Posted 2 years 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!


  2. unapanda
    Posted 2 years 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,
    			if ($.isFunction(text)) {
    				text = text.call(current.element, current);
    			if (!isString(text) || $.trim(text) === '') {
    			title = $('<div class="fancybox-title fancybox-title-' + type + '-wrap">' + text + '</div>');
    			switch (type) {
    				case 'inside':
    					target = F.skin;
    				case 'outside':
    					target = F.wrap;
    				case 'over':
    					target = F.inner;
    				default: // 'float'
    					target = F.skin;
    					if (IE) {
    						title.width( title.width() );
    					title.wrapInner('<span class="child"></span>');
  3. jomit
    Posted 2 years 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