• Resolved Drding

    (@drding)


    Hey there I’m trying to get SL to work with featured images loaded into my custom theme. I’m trying to follow the documentation and also other forum posts I’ve seen on the subject but I keep getting php errors with the code I’m trying to use.

    Either there’s something super simple I’m missing or I’m trying to implement the code completely wrong. Here’s what I’ve got:

    		   
    <div class="imgbox">	
         <?php
    	$url = get_the_post_thumbnail_url('full');
    	$image = the_post_thumbnail();
    	$content = '<a href="' .$url. '">' .$image. '</a>'
                if ( function_exists('slb_activate') ) {
    	         $content = slb_activate($content);
                }
             echo $content;
           ?>
    </div>
    

    Any help and advice would be greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting Simple Lightbox Working With Featured Image’ is closed to new replies.