Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / how to change the color of a specific side box?

how to change the color of a specific side box?

Locked

Started by gsdcypher on 22 Feb 2007, 10:11 PM · Views: 2,445

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Feb 2007, 10:11 PM
#1
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

how to change the color of a specific side box?

How do I change the color (back ground and text) of a specific sidebox?

I would like to change the information box to black with white writing...

Do I edit this code in the english.php???

// information box text in sideboxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_INFORMATION_CONTACT', 'Contact Us');
define('BOX_BBINDEX', 'Forum');
define('BOX_INFORMATION_UNSUBSCRIBE', 'Newsletter Unsubscribe');

define('BOX_INFORMATION_SITE_MAP', 'Site Map');

OR do I do it in the css stylesheet???

Thanks.

22 Feb 2007, 10:28 PM
#2
intelcos avatar

intelcos

Totally Zenned

Join Date:
Apr 2004
Location:
Montreal
Posts:
584
Plugin Contributions:
0

Re: how to change the color of a specific side box?

In the stylesheet, you will find it all by groups for the most part. Find the class that id's what you want changed and thats it unless it is an addon of the sort that requires other hard coding changes.

IntelCos

22 Feb 2007, 11:03 PM
#3
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: how to change the color of a specific side box?

cool. thanks for replying. i figured it would probably be the css stylesheet... problem is i can't find the code/class/etc. that is specific to the information box. it's the one that displays this info:

Information

Any idea where that is or what it is identified by? I only want to change the color and text of that box, not all of the sideboxes.

thanks.

23 Feb 2007, 2:10 AM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how to change the color of a specific side box?

All of the sideboxes have their own defines - you can make them each a different color if you want. Bestest fastest advice is to tell you to get Firefox and the developers tools so that you can identify them yourself - but for the information sidebox in particular you will want to style it using the classes #informationHeading & #informationContent - this will control only that box.

hth

When the world gets in my face I say Have A Nice Day.

23 Feb 2007, 3:29 AM
#5
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: how to change the color of a specific side box?

Hi,

I check out the box with web developer. when I click on the information heading it gives me this:

h1, h2, h3, h4, h5, h6 {

font-family: georgia;

}

I guess the information box is not defined in my css stylesheet...

but for the information sidebox in particular you will want to style it using the classes #informationHeading & #informationContent - this will control only that box.

So I guess I have to add those classes... but where do I add them. Does it matter where they are physically located in the css stylesheet? Should put them right under the code above h1, h2, etc...

thanks.

23 Feb 2007, 4:03 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: how to change the color of a specific side box?

Somewhere near the bottom of the stylesheet is a section titled /sideboxes/ .
That would be a good place to put custom sidebox settings.

23 Feb 2007, 7:05 AM
#7
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: how to change the color of a specific side box?

Ok done. :-)

#informationHeading, #informationContent {

background-color: #9FAC90;

color: #FFFFFF;

}

But it doesn't work in IE. The box shows up in the header in FireFox, but not in IE???