HI,
I have resolved this.
Add the following code to either single.php or page.php depending on where you want the featured image to be displayed.
<?php get_the_post_thumbnail( $post_id, $size, $attr ); ?>
<?php the_post_thumbnail( $size, $attr); ?>
Now how to I move the position of the image? to Center. I got the following code but how to I integrate it with the above code?
<?php the_post_thumbnail(‘thumbnail’, array(‘class’ => ‘aligncenter’)); ?>
Hi,
I had the same issue but am obviously far less experienced with using code than you. I copied and pasted your code into the bottom of the boot strap php page and now I’m getting a parse error message which is locking me out of wordpress altogether 🙁
*If* I manage to get my site back, I would like to give this another shot. Would you be a star and tell me please, exactly where (in newbie terms) did you put that code?
Thanks,
Louisa
Theme Author
sur
(@sur)
Hi,
You can do it without coding.
Theme compatibility > How to display single content.
Note you can set up by post type, securely you only want to be applied for posts or pages because product pages have template tag to display images.
Best Regards
Rose
(@thorned-rose)
@sur – Theme Compatibility only works if you are using TCP. If you don’t have it or have another ecommerce plugin, the problem remains.