Featured Posts

Latest Reply from Alice at 2016-01-15 11:36:51
Hi,

Is there a way to set a featured image but not have it show up in the post?

Alternatively, is there a way to set the featured post to be aligned right?

OR, Is there a way to put the featured image at the bottom of the post?

Thanks in advance!
Hi!

Please, find the following code in the file theloop.php located in the directory of the theme:
<?php // Post featured image
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(
'post-thumbnail',
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
);
if (!is_single()){ ?></a><?php }
}

?>

and replace with:
<?php // Post featured image
if (!is_single() && has_post_thumbnail()) {
?><a href="<?php the_permalink(); ?>" title="<?php printf( $SMTheme->_( 'permalink' ), the_title_attribute( 'echo=0' ) ); ?>">
<?php the_post_thumbnail(
'post-thumbnail',
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
); ?>
</a><?php } ?>

This modification will hide the featured image on the post page.

Leave a reply

Add codeAdd image