Quantcast
Channel: Topic Tag: xml | WordPress.org
Viewing all articles
Browse latest Browse all 3201

jonathanhooverks on "RSS Delete Elements By Class"

$
0
0

I want to use RSS from wordpress to drive my MailChimp campaigns, but I have several elements on the page that I don't want in my rss (like a gravity form, an image or two that doesn't apply to my email viewers, etc.).

I can use CSS on the mail chimp side to {display:none} the elements with the .hidefromrss class, but because Gmail won't tolerate the display css property, I'm out of luck.

I'd like to obliterate every item with class .hidefromrss from my rss feeds. I don't know which is the best way to go here... should I try to use a php reg_replace statement? Or should I try to use a javascript call using the DOM? Would it be better to use jquery? If so to any of these, could you give an example of how this would be done? I'm open to any potential solution. I thought this would be an easy thing to do. Man, was I ever wrong : )


Viewing all articles
Browse latest Browse all 3201

Trending Articles