Subcategory style

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Frandy

Subcategory style

Post by Frandy »

Hi,

I'd like to display in the category_sidebar subcat titles using a style different than parent cat (for example small font for subcategory and bold font for parent category).
is it possible to do that easily (using the css file ?) ?

thanks a lot

Frandy
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Subcategory style

Post by garvinhicking »

Using CSS3 that would be possible, but I think only firefox supports it.

So my suggestion is to take the plugin contents of the include/plugin_internal.inc.php file (the whole class serendipity_category_plugin), copy it into plugins/serendipity_plugin_mycategory/serendipity_plugin_mycategory.php and then make the HTML-changes inside the code there.

The reason why the plugin is not SMARTYfied is because usually users do not need customization for this, and it costs much performance for every smartyfied sidebar plugin to parse.

REgards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply