Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Cheese-Burger - maaliskuu 02, 2006, 06:55:22 AP

Otsikko: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 06:55:22 AP
Hi
Can someone help me out here with this problem.
Basically i need to change the copyright link colour at the bottom of the page, but it needs to be different from the "standard link" colour.


I thought it was a css thing and have created a smalltext2 in my css but cant find where to change the colour (its the same as my bg at the moment).
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Dannii - maaliskuu 02, 2006, 06:57:39 AP
Maybe place the whole thing in a div with a custom id, and then do
#customid a {color: #red;}
#customid a:hover {color: #somethingelse;}
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 07:22:43 AP
You wanna do a walk through on that ;)

My coding is about as good as my Latin  :-X
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Dannii - maaliskuu 02, 2006, 07:28:35 AP
For example in the default theme, the code is <td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
Change that to <td valign="middle" align="center" style="white-space: nowrap;" class="copyright">
', theme_copyright(), '
</td>
And then add this to your theme's style.css#copyright a {color: #red;}
#copyright a:hover {color: #somethingelse;}
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 07:31:00 AP
Thank you kind sir.

I`m gonna grab a coffee and have a go at this. I`ll let you know how i got on in a sec ;)
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 07:51:13 AP
Hmmmm
I done this
                           <td valign="middle" align="center" style="white-space: nowrap;" class="copyright">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>



And this right at the bottom of the Css

#copyright a {color: #000000;}
#copyright a:hover {color: #9de0c1;}



But nothing has changed :(
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: RyanJones - maaliskuu 02, 2006, 08:26:23 AP
Lainaus käyttäjältä: Cheese-Burger - maaliskuu 02, 2006, 07:51:13 AP
Hmmmm
I done this
                           <td valign="middle" align="center" style="white-space: nowrap;" class="copyright">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>



And this right at the bottom of the Css

#copyright a {color: #000000;}
#copyright a:hover {color: #9de0c1;}



But nothing has changed :(

In CSS the class opperator is . so try this:


.copyright a {color: #000000;}
.copyright a:hover {color: #9de0c1;}


Cheers,

Ryan Jones
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 08:49:33 AP
That got it. Cheers Ryan  :D
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: RyanJones - maaliskuu 02, 2006, 08:51:43 AP
Lainaus käyttäjältä: Cheese-Burger - maaliskuu 02, 2006, 08:49:33 AP
That got it. Cheers Ryan  :D

No problem :)

Cheers,

Ryan Jones
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Dannii - maaliskuu 02, 2006, 09:04:05 AP
oh year sorry  :-\
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: Cheese-Burger - maaliskuu 02, 2006, 09:06:36 AP
Hey, don`t be sorry. You got me to where i needed to be and i appreciate that :)
Otsikko: Re: Changing the footer copyright links colour in RC2
Kirjoitti: RyanJones - maaliskuu 02, 2006, 09:08:56 AP
Lainaus käyttäjältä: eldacar - maaliskuu 02, 2006, 09:04:05 AP
oh year sorry  :-\

Even the masters make mistakes :)

Cheers,

Ryan Jones