Hi. I would like to change the topic's entry contents codes (.pun .entry-content) in some categories like "news" etc but in rest categories to be normal-default settigs.
Can we do that?
Can we do that?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
$(function() { if (!$('.nav').length) return;
catPost(1, 'category1');
catPost(2, 'category2');
function catPost(category, name) {if (Number($('a.nav[href^="/c"]:first').attr('href').replace(/\/c(\d+)-.*/,'$1')) == category) $('.post').addClass(name)}
});
.post.category1 .postbody {
background:red
}
$(function() { if (!$('.nav').length) return;
catPost(5, 'forum5');
catPost(6, 'forum6');
function catPost(category, name) {if (Number($('a.nav[href^="/f"]:first').attr('href').replace(/\/f(\d+)-.*/,'$1')) == category) $('.post').addClass(name)}
});
.post.forum5:first-child .entry-content div div