How to Remove Tags/Leave a Reply
<?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); if ( $tags_list ): if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); $show_sep = true; ?> </span> <?php endif; // End if $tags_list ?>
<?php if ( comments_open() ) : ?> <?php if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> <?php endif; // End if comments_open() ?>
thanks for the super fast response. the tags on the homepage are removed. It works!
What about for inner pages?
Which file should i edit to do the same for the above mentioned problem?
rahter than editing Twenty Eleven directly, strongly consider to create a child theme to work with:
apart from the fact that an unedited default theme Twenty Eleven is needed in case of problems, a child theme also helps to keep customisations which otherwise will get overwritten with the next upgrade of the theme.
to remove the tags, have a look into content-single.php – the code looks a bit different – if you have problems, post again.
I did some trial and error with the portion of code that seems like it. However, when i remove parts of the code, the page simply refuse to load completely. It seems like i can’t simply remove portions of it without affecting the overall code.
I would like to keep the section of “This entry was posted in Recommendations” BUT remove the rest that follows.
What do you think i should do here?
- The topic ‘How to Remove Tags/Leave a Reply’ is closed to new replies.