Support » Fixing WordPress » How to remove (RSS) text link next to Comment

  • Resolved redfish-bluefish


    I have created a members only site with privacy and will have no need for any RSS capabilities, or the mention of, below each new post. My template displays this:
    Category: Cat Name | Comment (RSS)
    the “Cat Name” “Comment” and “(RSS)” are text links. I’d like to remove the RSS.

    I assume it’s somewhere in the CSS…?

    I’d also like to get rid of the mention of “Entries RSS” and “Comments RSS” text links without having to remove the Site Admin or Log out text links over in the sidebar. I don’t seem to have individual control in the Widgets area.

    Thanks in advance!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Try editing the relevant template file (single.php?) in your theme and removing:

    <?php post_comments_feed_link('RSS'); ?>

    To remove those elements from your sidebar, you’ll need to edit sidebar.php and remove:

    <a href="<?php bloginfo('rss2_url'); ?>">Entries RSS</a>
    <a href="<?php bloginfo('rcomments_rss2_url'); ?>">Comments RSS</a>

    The info from single.php was perfect! Found and removed easily. Thank you!

    The sidebar.php doesn’t include the info I need to delete. Here’s the revelant section of code. I don’t even see that it’s a command calling another doc.

    Any other ideas? Should I just create my own links and remove this whole section via the Widget thing? Not sure I’d know what link to use for logout.

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>				
    				<?php get_links_list(); ?>
    				<li><h2><?php _e('Meta') ?></h2>
    					<?php wp_register(); ?>
    					<li><?php wp_loginout(); ?></li>
    					<li><a href="" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.')?> ">WordPress</a></li>
    					<?php wp_meta(); ?>
    			<?php } ?>

    Try removing <?php wp_meta(); ?>

    Tried that. Also tried deleting <?php get_links_list(); ?>
    and the whole line

  • <h2><?php _e(‘Meta’) ?></h2>
  • Neither deletion did anything, which I also found strange. Is it possible that this not part of the template? I found lots of files call feed.php, feed-rss.php, and feed-rss2.php in my content folder.

Can you drop a copy of the sidebar.php file into the WordPress pastebin and post the pastebin url here?

A link to your site wouldn’t come amiss, either. The relevant links may be elsewhere in the markup and then re-positioned using CSS.

Ok, I have deactivated my privacy plugin so you can get to my site…

Hope I’ve done the pastebin correctly – May need to edit post.

Yes- the pastebin link was fine, thanks. But a quick check on your site was even more illuminating. You’re currently using the Meta Widget from Admin/Appearance/Widgets. Unfortunately, you can’t show only some of the Meta links. It’s an “all or nothing” widget. However, you can replace the widget with the code for just the links that you want.

Remove that widget from your sidebar. Then edit sidebar.php and replace:

<?php endif; ?>



at the end of the file with:

<?php endif; ?>
		<li><?php wp_register(); ?></li>
		<li><?php wp_loginout(); ?></li>


That did it! Great, thanks so much.

Glad to have helped. 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to remove (RSS) text link next to Comment’ is closed to new replies.