matgb: Artwork of 19th century upper class anarchist, text: MatGB (Understand)
Mat Bowles ([personal profile] matgb) wrote in [site community profile] dw_nifty2010-06-18 04:12 pm
Entry tags:

(Almost) hiding feed content on your reading page

K, in response to a few posts at [site community profile] dw_suggestions, have some CSS to reduce the impact feeds, especially long feed entries, have on your reading page.

As usual, copy and paste the below CSS code into your customcss area.
.page-read .journal-type-Y .entry-content { font-size:1px}
.page-read .journal-type-Y .entry-content .ljsyndicationlink {font-size:14px}
.page-read .journal-type-Y .entry-content .lj_embedcontent, .page-read .journal-type-Y .entry-content img {display:none}

Three sets of code, first line reduces the font of all feed entries on your reading page only to 1 pixel. So instead of a long entry, you get leetle ant lines. Second line increases the size of the link to the off-site entry back up, I've set it to 14px, but you should pick a font size to suit you. Third line hides embeds (like videos) and images.

Note the code starts .page-read, which means it only hides stuff on your reading page, so if you prefer to read feeds on site using style=mine, they'll show on the entry page itself as normal.

If you're one of those people that never leaves the site, but only wants to read feed content on entry pages not on your reading pages, so you don't mind if the link is obscured, it's actually possible to just hide the entire content, just put:

.page-read .journal-type-Y .entry-content {display:none}

into the customcss box instead.

Simples. By the way, I'm not using this code myself, I just did it as it was requested, it won't work if the feed uses inline styling to set size (naughty originating site), but I'm happy to have a look if anyone's having problems with it. It would, of course, be a lot easier if the paragraph given the class ".ljsyndicationlink" was followed by a div given a class like ".ljsyndicationcontent", but that's not my call *cough*hint*cough* ;-)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting