Forums

Remove RSS feeds and RSS icon (3 posts)

  1. swedish boy
    Member
    Posted 1 year ago #

    Might have been explained before but this is how you disable RSS-feeds completely from a WordPress installation.

    1) Check that your theme doesn't add any RSS feed in the header tag. Usually check header.php and remove anything like:

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />"

    2) Add this to the theme's functions.php (or other function file)

    function disable_rss() {
    	return null;
    }
    add_filter('default_feed', 'disable_rss');
  2. bonsaibeach
    Member
    Posted 1 year ago #

    Another way to do this (working with 3.1) is to place this in your wp-config.php

    remove_theme_support('automatic-feed-links');

    There might be a better place for it though...

  3. pixiegm
    Member
    Posted 8 months ago #

    @swedish boy, Thank you for the tip, I tried it, but it still hasnt fixed completely, because there is a no-image icon and when clicked on, it would take to a page which dispays - No Rss feed available.
    How do I disable this altogether so that there is no page at all?

Topic Closed

This topic has been closed to new replies.

About this Topic