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

  1. LCarter869
    Posted 8 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.


  2. WPQuestions.com
    Posted 8 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):


    The image should be 14px by 14px

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

    .rsswidget img{

    Hope that helps.

  3. invisiblepilot
    Posted 7 years ago #

    .rsswidget img{

    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