Disabling specific RSS feed meta links (/comments/feed/ and /home/feed/)

  • a1studmuffin

    #6372

    Hi there,

    I’m using a heavily customised version of the Graphene theme for my website and it’s working great. One minor problem I haven’t been able to resolve yet:

    How do I disable specific RSS feeds? In Firefox, if I go to my homepage and right-click and “View Page Info” > “Feeds”, I see 3 feeds:

    >> Feed

    >> Comments Feed

    >> Home Feed

    If I look at the HTML, I see in the head section something like:

    <link rel="alternate" type="application/rss+xml" title="Title Feed" href="http://www.website.com/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Title Comments Feed" href="http://www.website.com/comments/feed/" />
    <link rel="alternate" type="application/rss+xml" title="Title Homepage Comments Feed" href="http://www.website.com/home/feed/" />

    I only want the first RSS feed. The second two I want to turn off.

    Thanks!

    M

    Michael

    Prasanna SP

    #34141

    Hide RSS links in WordPress SEO Settings –> Titles and Metas. Then add the feed link manually to head

    function my_feed_link_in_head() {
    ?>
    <link rel="alternate" type="application/rss+xml" title="Juicy Body Art ร‚ยป Feed" href="http://www.juicybodyart.com/feed/" />
    <?php
    }
    add_action('wp_head', 'my_feed_link_in_head');

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard. I’ve edited your post.

    a1studmuffin

    #34142

    Aha, genius! Thanks very much for the quick reply, really appreciate it.

    I ended up choosing “Hide RSS links” as you suggested, then simply adding the RSS link under Graphene Options > Advanced > Custom <head> Tags.

    Prasanna SP

    #34143

    Another suggestion, use the below CSS to change dropdown arrow colour from black to white on hover and current menu item state.

    #header-menu > li.menu-item-ancestor:hover > a,
    #header-menu > li.current-menu-item > a,
    #header-menu > li.current-menu-ancestor > a {
    background-position: -877px -236px;
    }

    This,

    mNnLb.png

    looks better than this,

    Ve16w.png

    Prasanna SP

    #34144

    Ah! I forgot about the Custom <head> Tags.

    a1studmuffin

    #34145

    Thanks very much for the feedback! I’ll do the arrow CSS tonight, great suggestion. ๐Ÿ™‚

    Prasanna SP

    #34146

    Marking thread as resolved. You can do this yourself as well.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.