How to change the color / font of comments, view etc? How to change the color / font of comments, view etc?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to change the color / font of comments, view etc?

Started by marpessa, December 14, 2007, 06:39:15 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

marpessa

In my gallery, thumbnail view shows capiton, number of comments and number of views under thumbnails. I want them all to be in different colors. But I think the only variable defines them is the "thumb_num_comments" span class so all 3 look the same. What part should I edit so that I can make all 3 lines in different colors? I should define 2 new span classes and then edit them in the template css, but I dont know where to define these spans.

Please help, thanks a lot in advance!

marpessa


Joachim Müller

Why don't you share your insiaght with others for everybody's benefit?

marpessa

Of course!

The comments, views etc. are controlled by the span style called "thumb_num_comments". I went to functions.inc in the includes directory, found that "thumb_num_comments" string and defined new span classes, I mean I defined them all seperately. Like "thumb_num_views", "thumb_num_caption" etc.

Then I went to the css file of the theme I have been using and added these newly defined spans there as well, set the color, font etc. I like.

That's it, it was quite easy. I'd love to help further if anyone has any questions about that. ;)