Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How to change the color / font of comments, view etc?  (Read 2102 times)

0 Members and 1 Guest are viewing this topic.

marpessa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
How to change the color / font of comments, view etc?
« 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!
« Last Edit: December 15, 2007, 12:22:42 pm by GauGau »
Logged

marpessa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: How to change the color / font of comments, view etc?
« Reply #1 on: December 14, 2007, 09:20:30 pm »

Nevermined, I figured it out myself.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change the color / font of comments, view etc?
« Reply #2 on: December 15, 2007, 12:22:29 pm »

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

marpessa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: How to change the color / font of comments, view etc?
« Reply #3 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. ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.