ThemeShaper Forums » Thematic

remove page comments rss feed from the header

(2 posts)
  • Started 1 year 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 1 year 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 1 year ago #

RSS feed for this topic

Reply

You must log in to post.