Featured Picture Question

Latest Reply from Ivo at 2013-02-14 11:44:07
Dear Administrator,

I would like to ask a question. Is there a way to set up a feature image to the posts, but remove it from the top page, and post page view? I would still like to have one assigned, as this way it is visible in the related posts view, and the recent posts area!

All the best, great work with the website,

Creative Lightbrary
Hi!
Please open file theloop.php of a theme and remove following code:
if(has_post_thumbnail())  {
if (!is_single()){ ?><a href="<?php the_permalink(); ?>" title="<?php printf( $SMTheme->_( 'permalink' ), the_title_attribute( 'echo=0' ) ); ?>"> <?php }
the_post_thumbnail(
array($SMTheme->get( 'layout', 'imgwidth' ), $SMTheme->get( 'layout', 'imgheight' )),
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
);
if (!is_single()){ ?></a><?php }
}
Dear Admin,

I have a similar question, but I would like to only remove the featured image from the post page view.

I want the image to remain in the List of posts, recent posts and similar posts. Only when I view one particular post, I'd like to have it removed.

Thanks!

Leave a reply

Add codeAdd image