coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: marpessa on December 14, 2007, 06:39:15 PM

Title: How to change the color / font of comments, view etc?
Post by: marpessa on December 14, 2007, 06:39:15 PM
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!
Title: Re: How to change the color / font of comments, view etc?
Post by: marpessa on December 14, 2007, 09:20:30 PM
Nevermined, I figured it out myself.
Title: Re: How to change the color / font of comments, view etc?
Post by: Joachim Müller on December 15, 2007, 12:22:29 PM
Why don't you share your insiaght with others for everybody's benefit?
Title: Re: How to change the color / font of comments, view etc?
Post by: marpessa on December 15, 2007, 12:27:25 PM
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. ;)