css - Hiding a particular image from RSS -
i have blogger-powered site (alwaysspanish.com) , offer rss feed via http://www.alwaysspanish.com/feeds/posts/default?alt=rss.
on blog posts, include small, 100px image @ beginning wrapped inside "postthumb" class. class has been styled visible on index pages thumbnail visible part of post-snippets in such pages archives, category, etc. on other hand, won't visible on full-post page.
while rule works fine on website display, doesn't when comes rss feed. rss xml appears ignore css styling. there way force rss honoring @ least 1 styling because don't want display first image (the thumbnail styled .postthumb) on post feed? hope solution around programmatically tweaking rss xml before it's fed readers.
an idea open rss in iframe , load css inside iframe javascript. simplest solution thought
<iframe name="frame" src="link/to/your/rss" height="100%" width="100%" onload="contentloaded();"></iframe> javascript:
var contentloaded = function() { var csslink = document.createelement("link") csslink.href = "style.css"; csslink.rel = "stylesheet"; csslink.type = "text/css"; frames['frame'].document.body.appendchild(csslink); } notice: works if domain of iframe matches domain...
Comments
Post a Comment