WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove (RSS) text link next to Comment (10 posts)

  1. redfish-bluefish
    Member
    Posted 4 years ago #

    Hello,
    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!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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>
  3. redfish-bluefish
    Member
    Posted 4 years ago #

    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>
    
    				<ul>
    
    					<?php wp_register(); ?>
    
    					<li><?php wp_loginout(); ?></li>
    
    					<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.')?> ">WordPress</a></li>
    
    					<?php wp_meta(); ?>
    
    				</ul>
    
    				</li>
    
    			<?php } ?>
  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Try removing <?php wp_meta(); ?>

  5. redfish-bluefish
    Member
    Posted 4 years ago #

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

  6. <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.

  • esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  • redfish-bluefish
    Member
    Posted 4 years ago #

    Ok, I have deactivated my privacy plugin so you can get to my site...
    http://pbsail.org/members

    Hope I've done the pastebin correctly - May need to edit post.
    http://wordpress.pastebin.com/70gYKqeD

  • esmi
    Forum Moderator
    Posted 4 years ago #

    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; ?>
    
    		</ul>
    
    	</div>

    at the end of the file with:

    <?php endif; ?>
    		<li><?php wp_register(); ?></li>
    		<li><?php wp_loginout(); ?></li>
    		</ul>
    
    	</div>
  • redfish-bluefish
    Member
    Posted 4 years ago #

    That did it! Great, thanks so much.
    :)

  • esmi
    Forum Moderator
    Posted 4 years ago #

    Glad to have helped. :-)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags