How can I change the text for the RSS feed in the sidebar to a custom RSS icon?
How can I change the text for the RSS feed in the sidebar to a custom RSS icon?
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 .
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?
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?)
This topic has been closed to new replies.