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: Quick question on themes/colors...  (Read 3496 times)

0 Members and 1 Guest are viewing this topic.

keithluneau

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Quick question on themes/colors...
« on: August 09, 2006, 08:38:12 pm »

Hi. I've got a good understanding about this themeing stuff, but by no means would I call myself "good" at it. lol I've doctored up our gallery to look like out forum's custom theme, and got it bridged and working well. There's just one little thing that's buggin me though. How do I changed the color of the text in the FAQs without changing to the color of the links in the top menu? Take a look at the gallery here and see what I mean. The top menu really needs to stay with the white text, but it looks screwed up on the FAQs page. http://www.scale4x4rc.org/gallery

Please let me know and thanks for any help in advance!
Keith

« Last Edit: August 09, 2006, 11:43:21 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Quck question on themes/colors...
« Reply #1 on: August 09, 2006, 09:14:28 pm »

you can create new style under style.css and bind it to the faq links
something like
Code: [Select]
.faqlink:link {
color:#00000;
}
and then edit faq.php and add that style as a class name to a tag of this line:
Code: [Select]
       $faqHeading .= '<ul style="margin-top:0px;margin-bottom:0px"><li><a href="#'.$anchorName.'">'.$element[0].'</a></li></ul>';

something like this:
Code: [Select]
       $faqHeading .= '<ul style="margin-top:0px;margin-bottom:0px"><li><a href="#'.$anchorName.'" class="faqlink">'.$element[0].'</a></li></ul>';
Logged
‍I don't answer to PM with support question
Please post your issue to related board

keithluneau

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Quck question on themes/colors...
« Reply #2 on: August 09, 2006, 09:39:43 pm »

Thanks for the quick responce! That worked well, but the large links on the FAQ page are still white. Where might I find those to change them?

By the way, I had to call the new style "faqlink" and not "faqlink:link" for it to work. I guess I could have changed to code in faq.php, but I figured either way was fine.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Quick question on themes/colors...
« Reply #3 on: August 09, 2006, 09:48:50 pm »

faqlink:link should work ! it work for me !!!
anyway you need to change the line 41 of faq.php (a tag under else )
to
Code: [Select]
      $faqHeading .=  '<h2><a href="#'.$anchorName.'" class="faqlink">'.$element.'</a></h2>';
Logged
‍I don't answer to PM with support question
Please post your issue to related board

keithluneau

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Quick question on themes/colors...
« Reply #4 on: August 09, 2006, 10:14:14 pm »

That works! Thanks again for the help!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.