• Resolved cgoldt

    (@cgoldt)


    Hi,

    I would like to use the Lightbox Plugin to open a gallery from a custom text link in a custom template. So I’m having a text saying: Watch Gallery. When I’m clicking on the link I would like to open the lightbox and click through all the gallery images within the lightbox.

    Is there any way to do this?

    Thanks for your help!
    Cara

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Archetyped

    (@archetyped)

    Yep! See this aptly named tutorial: Simple Lightbox: Launching Slideshows from a Single Link

    Thread Starter cgoldt

    (@cgoldt)

    Hi Archetyped,

    thanks for the quick response. I would like to place the link directly in the template file instead of the post. Your quick tutorial just helped me to add it to the post. Do you have any hint how to modify it to work in the template file?

    Thanks a lot!
    Cara

    Plugin Author Archetyped

    (@archetyped)

    Hi, you can use slb_activate() (documentation) to activate links in custom areas of your site, such as template files.

    Simply add the desired links to the template file as a string variable, then pass the variable through slb_activate() before echoing it:

    $content = 'content with links and stuff to activate';
    if ( function_exists('slb_activate') ) {
    	$content = slb_activate($content);
    }
    echo $content;
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open Lightbox Gallery from custom text link’ is closed to new replies.