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* ;-)
spes_unica: (Default)

[personal profile] spes_unica 2010-09-09 10:13 am (UTC)(link)
Thanks, that worked very well!

ETA: Particularly thanks for making up a separate code line for blocking or not blocking images - that way I can minimise extremely long text entries from feeds, but still see my webcomics!!!!
Edited 2010-09-09 10:17 (UTC)
bluemeridian: Blue sky with fluffy white clouds through a break in the tree tops (Default)

[personal profile] bluemeridian 2011-08-11 09:36 pm (UTC)(link)
Thank you! I remembered hearing about this but had lost track of it when I actually wanted to implement it. Fortunately I was pointed back over here and it works great. :)