Forums

Custom RSS Icon in Sidebar (4 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    How can I change the text for the RSS feed in the sidebar to a custom RSS icon?

  2. chaoskaizer
    Member
    Posted 3 years ago #

    depend on ur theme try add the below code inside your theme css stylesheet.

    assume that your sidebars id is #sidebar.

    .txt-to-image-replacement,
    #sidebar a.rsswidget{
    position: relative;
    text-indent: -999em;
    overflow:hidden;
    display:block }
    
    #sidebar a.rsswidget img{display:none}} /* hide the default icons */
    
    #sidebar a.rsswidget{ background-image:url(http://s.wordpress.org/style/images/feedicon10.png);
     width:10px;
     height:10px;
     padding:0pt;margin:0pt}

    you'll need to set the background-image "url", width & height .

  3. Anonymous
    Unregistered
    Posted 3 years ago #

    Would I be able to add the image in this code?

    <br /><li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>

    Or at least apply a CSS style to it?

  4. Anonymous
    Unregistered
    Posted 3 years ago #

    Okay so I found the tutorial to do this in the Codex, but I'm still having some issues turning the other links on the page into images. I tried using the same method, but because they're wp_ instead of just the bloginfo the change isn't taking. (it just adds the image below instead of turning it into the link). What do I need to do? (do I need to add the image to the wp_login/wp_logout file?)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.