Support » Themes and Templates » How to remove Comment Feed link from Header?

  • I am talking about this line of code

    <link rel="alternate" type="application/rss+xml" title=" &raquo; Comments Feed" href="" />

    I have tried adding a remove action hook manually in template’s functions.php

    remove_action('wp_head','feed_links_extra', 3);

    But it doesn’t remove it.

    I have tried wordpress head cleaner plugin unfortunately it also couldn’t remove it.

    At last I have edited wp-includes/default-filters.php and commented out

    add_action( 'wp_head', 'feed_links_extra',3);

    My comment feed links are still there. I prefer functions.php modification or plugins other than modifying the core files.

    I have tried disabling all the plugins and gone back to default theme but looks like the solution is not plugin or theme dependent. Unfortunately nothing works! I am using wordpress 3.2.1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same here – did you ever find a solution?

    Also looking for solution to removing broken comment feed link in my header, running 3.2.1. Thanks!

    Algo here! Not possible to remove comments link from header on wordpress 3.2.1

    Based on my testing in WP 3.3.1:

    remove_action( 'wp_head', 'feed_links' );

    has no effect.

    remove_action( 'wp_head', 'feed_links', 2 );

    does remove both the main RSS feed and the comments RSS feed, but does not remove the comments RSS feed of individual posts. if you apply this, you may want to re-apply the main RSS link in your theme’s header.php, as described here (or by adding an action in your functions.php, as described here).

    remove_action('wp_head','feed_links_extra', 3);

    does remove the comments RSS feed in individual posts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove Comment Feed link from Header?’ is closed to new replies.