WordPress.org

Ready to get started?Download WordPress

Forums

How do I remove the rss icon from a feed in the sidebar? (3 posts)

  1. LCarter869
    Member
    Posted 6 years ago #

    I just put an RSS feed in my sidebar...but I dont like to look of the icon - for some reason its a little distorted.

    How can I remove the icon? I've looked at my theme's css but I just cant seem to find where it is.

    Thanks!

  2. WPQuestions.com
    Member
    Posted 6 years ago #

    You can change the image the RSS sidebar widget uses by replacing the default rss.png image located here (this will also change the rss icon the admin area uses):

    \wp-includes\images\rss.png

    The image should be 14px by 14px

    If you really do not want the image you can add this to your stylesheet:

    .rsswidget img{
      display:none;
      }

    Hope that helps.

  3. invisiblepilot
    Member
    Posted 5 years ago #

    .rsswidget img{
    display:none;
    }

    That will actually still leave you with a 14px X14px orange square where the icon used to be ..

    the best answer (to COMPLETELY REMOVE the RSS icon) is this:

    Open wp-includes/widgets.php, find the following line and remove the BOLD text:

    $title = "<strong><a class='rsswidget' href='$url' title='" . attribute_escape(__('Syndicate this content')) ."'><img style='background:orange;color:white;border:none;' width='14' height='14' src='$icon' alt='RSS' /></a></strong> <a class='rsswidget' href='$link' title='$desc'>$title</a>";

    which will leave this:
    $title = "<a class='rsswidget' href='$link' title='$desc'>$title</a>";

    Save & upload.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags