Forums

Where is the RSS Icon formatting tags? (8 posts)

  1. bblodge
    Member
    Posted 4 years ago #

    I have been trying to change the size of the rss icon on http://www.postsalotspeaks.com for way to long with no results. I have looked in all the normal places where this img style tag would be and cannot find it. I am using the limau-orange-01 theme and would appreciate any help, this is the code i need to locate,

    <div class="right">

  2. hakre
    Member
    Posted 4 years ago #

    Well, it is hardcoded inside the rss widget code. This should be located in wp-includes/widgets.php in function wp_widget_rss(). You could edit the code in line 1041 but I would suggest you force the display of that image to have some other dimensions with your themes CSS so that there is no need to touch the codebase because that would be destroyed with each update.

  3. bblodge
    Member
    Posted 4 years ago #

    Thanks for the reply, will i have issues over ruling the style tag that is already embedded within the tag?

    Any more insight you can provide about how I would force dimensions of the image within the themes CSS would be appreciated!

    Thanks again for your help!

  4. hakre
    Member
    Posted 4 years ago #

    This CSS should do the Job:

    /**
     * rss icon size
     *
     * overrides the default 14x14 pixel hardcoded rss icon
     * imagesize.
     *
     * @section rss icon image size
     */
    .widget_rss h2 img {width:200px; height:200px;}

    (well my example width and height is quite large for an icon but I guess you understand how to change these sizes)

    You can add this to your themes CSS file (at best at then end)

  5. bblodge
    Member
    Posted 4 years ago #

    Thank you sooo sooo much you are BOMB

  6. hakre
    Member
    Posted 4 years ago #

    bblodge, glad to read that it did the job for you. Please mark this thread as resolved. Thanks!

  7. kailio
    Member
    Posted 4 years ago #

    On my site the formatting looks weird for the title on the sidebar widget. On the first line is the rss icon and the feed title is on the second line. Why is this? I want to have it on one line....icon and title on one line.

  8. mbiernat
    Member
    Posted 3 years ago #

    Hi I tried adding the above to my CSS. But it did not work. Do you have any other ideas. I just want to change the rss icon sizes on my wordpress sidebar widget. thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags