Comment link and featured image

Latest Reply from news at 2013-07-26 06:40:52

I need urgent help with these 2 things:

1. I need to REMOVE or NOT display the comment-count link on the home page, under each article title.

2. When i set a 'featured image' it shows up fine on the home page, but i DO NOT want it to show up in the post page if i do not 'insert into post'. Right now it shows up in the post regardless, and looks pretty bad when i post another picture in the post.

Thanks.

Administrator,

Can u kindly answer the questions above. Thanks.

Hi!
To make these changes you need to open file theloop.php and remove strings

<?php if(comments_open( get_the_ID() )) {
comments_popup_link( $SMTheme->_( 'noresponses' ), $SMTheme->_( 'oneresponse' ), $SMTheme->_( 'multiresponse' ) , 'meta-comments'); ?><?php
} ?>

and replace this code

<?php
if(has_post_thumbnail()) {
?><?php 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")
); ?></a><?php } else { ?>
<?php the_post_thumbnail(
array(278, 173),
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
); ?>
<?php }
}
?>

with this
<?php
if(has_post_thumbnail()&&!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")
); ?></a>
<?php }
?>
LOsSsC Thank you for your article post.Really looking forward to read more. Much obliged.
k5XoID I really like and appreciate your article post.Thanks Again. Really Cool.

Leave a reply

Add codeAdd image