• Hi,
    I am using MetaSlider – Responsive on a website I am building,
    The way the website is designed, the actual gallery images are very small.
    So we have discussed being able to click the gallery images and enable Lightbox.
    I have looked around for a solution and found a few similar responses but nothing relevant.

    Any help would be greatly appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Craig,

    Please check out this thread: http://ww.wp.xz.cn/support/topic/add-rellightboxmetaslider_id

    It looks like it’s possible in conjunction with the slimbox plugin. I haven’t tested this in full, all I’ve tested is the code adds the correct ‘rel’ attribute to the images.

    Regards,
    Tom

    Thread Starter Craig Pettit

    (@pushdevadmin)

    Thanks for getting back to me
    are you referreing to this code

    function metaslider_rel_attribute($slide, $slideshow_id) {
    	$slide['rel'] = "lightbox[{$slideshow_id}]";
    	return $slide;
    }
    add_filter('metaslider_image_slide_attributes', 'metaslider_rel_attribute',10, 2);

    ?
    Do i need to edit the shortcode to include rel=lightbox or download any additional plugins?

    Thanks Again
    Craig

    Hi, you’ll need to install the slimbox plugin, then add that code to your themes functions.php file.

    I’m not sure how the slimbox plugin works, so you’ll need to take a look at it to see how it works.

    Regards,
    Tom.

    Thread Starter Craig Pettit

    (@pushdevadmin)

    According to the Slimbox plugin installation guide, All i have to do is install and activate the plugin, but it doesn’t seem to work.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin – MetaSlider – Responsive’ is closed to new replies.