How Can I Remove The Author And Category From This Theme

Latest Reply from Dave at 2014-02-25 04:40:37
I used the show/hide author plugin to get rid of the author name in the theme but now it shows as this: http://screencast.com/t/YkdLTA25 at the top of the page below the post title. Is there a way to remove that?
Hi!
Please try to remove following code from the file theloop.php:
//Post meta (comments, date, categories)
if (!is_page()) {?><p class='post-meta'>

<span class='post-date'><?php echo get_the_date(); ?></span>,

<img alt="" src="<?php echo get_template_directory_uri(); ?>/images/smt/category.png" /> &nbsp;<?php the_category(', ');

if(comments_open( get_the_ID() )) {
?><img alt="" src="<?php echo get_template_directory_uri(); ?>/images/smt/comments.png">&nbsp;<span class='post-comments'><?php comments_popup_link( $SMTheme->_( 'noresponses' ), $SMTheme->_( 'oneresponse' ), $SMTheme->_( 'multiresponse' ) ); ?></span>
<?php }
edit_post_link( $SMTheme->_( 'edit' ), ' | <span class="edit-link">', '</span>' );
?>
</p><?php } ?>
It seems editing anything within that code block makes all the content from a page/post disappear and just gives me a white box on the page. Any other idea on how to remove it?
Hi!
Sorry for inconvenience. Please, remove the code:
<?php
//Post meta (comments, date, categories)
if (!is_page()) {?><p class='post-meta'>

<span class='post-date'><?php echo get_the_date(); ?></span>,

in category&nbsp;<?php the_category(', ');

if(comments_open( get_the_ID() )) {
?>&nbsp;comments&nbsp;<span class='post-comments'><?php comments_popup_link( $SMTheme->_( 'noresponses' ), $SMTheme->_( 'oneresponse' ), $SMTheme->_( 'multiresponse' ) ); ?></span>
<?php }
edit_post_link( $SMTheme->_( 'edit' ), ' | <span class="edit-link">', '</span>' );
?>

</p><?php } ?>

to fix this.
Removed that, still blanks out all the content in the main content window when removed.
Hi!
Please, roll back all the changes and remove just the code:
{?><p class='post-meta'>

<span class='post-date'><?php echo get_the_date(); ?></span>,

<img alt="" src="<?php echo get_template_directory_uri(); ?>/images/smt/category.png" /> &nbsp;<?php the_category(', ');

if(comments_open( get_the_ID() )) {
?><img alt="" src="<?php echo get_template_directory_uri(); ?>/images/smt/comments.png">&nbsp;<span class='post-comments'><?php comments_popup_link( $SMTheme->_( 'noresponses' ), $SMTheme->_( 'oneresponse' ), $SMTheme->_( 'multiresponse' ) ); ?></span>
<?php }
edit_post_link( $SMTheme->_( 'edit' ), ' | <span class="edit-link">', '</span>' );
?>
</p><?php }

Leave a reply

Add codeAdd image