Featured image
-
I read in an earlier post
https://www.ads-software.com/support/topic/does-not-work-with-featuredthumbnail-image?replies=6
that to enable SLB on featured image, I will have to add the following lines:
<?php $FeaturedImage = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post->ID ), 'single-post-thumbnail' ); ?> <?php if ($FeaturedImage) { ?> <div class="ListedImage four alignleft"><a href="<?php echo $FeaturedImage[0]; ?>" rel="slb slb_internal" data-slb-active="1" data-slb-internal="0"><img src="<?php echo $FeaturedImage[0]; ?>" /></a></div> <?php } //End - if there was a featured image ?>
May I know where should the above lines be added?
My site is here https://learnchn.com using Toivo lite theme.
Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Featured image’ is closed to new replies.