ThemeShaper Forums » Thematic

[closed]

remove page comments rss feed from the header

(2 posts)
  • Started 9 years ago by GraphicKarma
  • Latest reply from em hr
  • This topic is not resolved

Tags:

  1. I cannot seem to figure out how to remove the page specific comment rss feed from the header. I was able to remove the general comments rss feed, but I can't figure out which function is pulling the page specific one in. Help would be appreciated. : )

    Posted 9 years ago #
  2. Hi GraphicKarma,

    I never realized this before but both Thematic and WordPress put comments RSS links in the head. Here's my suggestion:

    function child_show_commentsrss($display) {
    	// conditionally switch off Thematic's comments feed link
    	if (is_page()) {
    		$display = FALSE;
    	}
    	return $display;
    }
    add_filter('thematic_show_commentsrss','child_show_commentsrss');
    function remove_wp_comments_rss() {
    	// remove WP's comments feed link by adding an empty filter
    }
    add_filter('post_comments_feed_link','remove_wp_comments_rss');

    -Gene

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.