Support » Themes and Templates » Add CSS to RSS feed

  • Having some troubles with adding a css file to feed-rss.php.
    The reason I want to add this css is because I want to make the images in the rss feed smaller.

    Right now I used this code in the css:

    IMG{
    	max-width: 320px;
    	max-height: auto;
    }

    and tried to link it to the rss feed by adding this code to feed-rss.php :

    echo '<?xml-stylesheet type="text/css" href="http://www.mysite.com/wp-includes/image.css"'; ?>

    I putted both files in wp-includes
    But, it doesn’t work. Could anyone help me? What am I doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m looking for help on this topic too! I am pulling the image to a secondary page, so I don’t want to change the size of the image that will be displayed, I just want to style it smaller using css.

    Can anyone help? Thanks.

    You cannot add CSS to RSS feeds. They simply do not support CSS. End of story.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add CSS to RSS feed’ is closed to new replies.