SMThemes Support » ClothingStore
Comment link and featured image
12 years ago
christopher
Member 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. |
12 years ago
christopher
Member Administrator, Can u kindly answer the questions above. Thanks. |
12 years ago
Administrator
Support Service
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 } ?> |
11 years ago
cool news
Member
LOsSsC Thank you for your article post.Really looking forward to read more. Much obliged.
|
11 years ago
news
Member
k5XoID I really like and appreciate your article post.Thanks Again. Really Cool.
|
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts