Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How do I remove RSS feeds from being listed in the HTML source? Like I want to remove the following:

<link rel="alternate" type="application/rss+xml" href="foo.com">

I don't want to remove the RSS feeds by any means, just the automatic output in the theme.

share|improve this question
add comment

1 Answer

If the theme is a relatively modern one, find this line of code in the functions.php file and remove it:

add_theme_support( 'automatic-feed-links' );

If it's an older theme, then look in the header.php file for the code that adds those.

share|improve this answer
1  
Or, if using a child Theme, call remove_theme_support( 'automatic-feed-links' ), in a function hooked into after_setup_theme, with a lower (bigger-number) priority than the Parent Theme's setup function. –  Chip Bennett Aug 23 '11 at 1:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.