Title: Removing Automatic feed links from header
Last modified: August 20, 2016

---

# Removing Automatic feed links from header

 *  Resolved [igorx81](https://wordpress.org/support/users/igorx81/)
 * (@igorx81)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/removing-1/)
 * Hi, I’ve tried to modify some files in wp-includes but with no result.
 * How can I remove the whole line
 * <link rel=”alternate” type=”application/rss+xml” title=”Site Title » Post Title
   Comments Feed” href=”[http://www.site.com/posturl/feed/&#8221](http://www.site.com/posturl/feed/&#8221);/
   >
 * from each post header?
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/removing-1/#post-3009338)
 * No! Never, **ever**, edit WordPress core scripts. And do not encourage others
   to do so. Editing core scripts can bring down your entire site and/or open security
   holes for hackers to use.
 * Re-upload a fresh copy of the wp-includes folder then try adding:
 *     ```
       // Remove auto generated feed links
       function my_remove_feeds() {
       	remove_action( 'wp_head', 'feed_links_extra', 3 );
       	remove_action( 'wp_head', 'feed_links', 2 );
       }
       add_action( 'after_setup_theme', 'my_remove_feeds' );
       ```
   
 * to your theme’s functions.php file.
 *  Thread Starter [igorx81](https://wordpress.org/support/users/igorx81/)
 * (@igorx81)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/removing-1/#post-3009358)
 * Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing Automatic feed links from header’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [igorx81](https://wordpress.org/support/users/igorx81/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/removing-1/#post-3009358)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
