WordPress.org

Ready to get started?Download WordPress

Forums

How to remove RSS in top nav? (12 posts)

  1. cbitter
    Member
    Posted 4 years ago #

    Thanks for the help removing the "home" link in the topnav... I thought I'd be able to figure out how to remove the "RSS" tag too, but I can't.

    Can anyone tell me how to remove or suppress it?

  2. cbitter
    Member
    Posted 4 years ago #

    my question is in reference to the Autofocus theme. Forgot to mention that...

  3. CRFCEO
    Member
    Posted 4 years ago #

    As long as someone wants to know how to remove the RSS tag, I'd like advice on putting it back...

    It seems my RSS feed is useless now, and I can't submit a google news sitemap..

  4. squareink
    Member
    Posted 4 years ago #

    The RSS link is within the same code. Look at line 417:

    echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';

    I am currently trying to remove it myself but I am crap at php and can not get it to work properly. I can remove it by commenting the whole line out but then I am also commenting out the and </div>... I've tried to move those two up but with not much luck...

    The full bit of code is:

    function sandbox_globalnav() {
    	echo '<div id="menu"><ul><li class="page_item"></li>';
        $menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
        echo str_replace(array("\r", "\n", "\t"), '', $menu);
    	echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';
    }

    and if someone can tell me exactly what to comment out/ delete / move I'd be very greatful!

    Cheers!

  5. garethooper
    Member
    Posted 4 years ago #

    Hi,

    Remove the <a> Link reference from the line/s:
    Replace: echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';

    With: echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';

    Ver: 0.9.7
    Line: 452

    Gareth

  6. madebymarco
    Member
    Posted 4 years ago #

    what php filename is this?

  7. Samuel B
    moderator
    Posted 4 years ago #

    header.php

  8. nick_male
    Member
    Posted 4 years ago #

    How to remove RSS in Autofocus ver 1.0.1 ?

  9. macem
    Member
    Posted 4 years ago #

    @nick_male: replace line 464 in functions.php with
    echo '<li class="page_item">&nbsp; </li></ul></div>';

  10. miabake1
    Member
    Posted 4 years ago #

    thanks macem this worked perfectly.

  11. Ellingaa
    Member
    Posted 4 years ago #

    How do i remove the RSS link in the top menu on
    dfBlog 1.1.5 by danielfajardo web ?

  12. sdoubleyu
    Member
    Posted 4 years ago #

    anyone know how to edit the RSS name?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags