Using SBL in my template
-
On my single posts, my template shows a featured image thumbnail and links to the larger image. Is it possible to modify my code so it will use the SBL and not just open the image in a new page?
This is what I’m using in my template.
<?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); echo '<a data-slb-internal="0" data-slb-active="1" data-slb-group="17" href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >'; the_post_thumbnail('medium', array('class' => 'alignright')); echo '</a>'; } ?>
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using SBL in my template’ is closed to new replies.