Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

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

change font weight?

Locked

Started by robsnowden on 27 Jan 2008, 7:35 PM · Views: 4,110

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
27 Jan 2008, 7:35 PM
#1
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

change font weight?

Hi

I am bust customising yet another zencart installation and I am trying to figure out how to change the font weights in various places, in particular the 'welcome guest.....' text on the home page and all the headings in the side and centre boxes - such as Home, Login, New Products for xxxxxxx. I think that these fonts are a little heavy and chunky!

Please can someone show me the way to do this before my head explodes!

I thank you all!!!

Rob

if elephants could fly, I'd be a little more optimistic....

27 Jan 2008, 8:14 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: change font weight?

Find the class or id that applies to the element in question, and add

font-weight: normal;

or whatever to its declaration in the stylesheet. If it is not explicitly listed in the stylesheet, add a new declaration.

To find the correct class/id, you can view source and see what tag occurs just before the text output, or use the Firefox Web Developer's Information > Display Element Information button and click on the element.

27 Jan 2008, 8:58 PM
#3
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: change font weight?

Thanks Glenn - useful reply.

I managed to change the header fonts in stylesheet but I can't seem to find where to change the font weight on the "Welcome......" text. I know where to change the wording itself but not the font weight.

Any further help with this specific text would be very helpful.

Cheers

Rob

if elephants could fly, I'd be a little more optimistic....

27 Jan 2008, 9:42 PM
#5
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

Re: change font weight?

Thanks again Glenn

That sorted it. :)

Cheers

Rob

if elephants could fly, I'd be a little more optimistic....

29 Jan 2008, 10:17 PM
#6
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: change font weight?

gjh42:

h2.greeting {font-weight: normal;}

will fix that.

I can't find this. I've looked on both the includes/langauges/english/index.php file and the stylesheet.css file.

If it makes a difference, I'm using the cherry_zen style sheet.

Thanks!

30 Jan 2008, 7:52 AM
#8
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: change font weight?

gjh42:

You need to add this to your stylesheet.

I tried that, and it changes the wrong thing. So maybe we are talking about 2 different "welcomes" on the main page. I am wanting to change the font size & color of the "welcome" that is on the index php. I followed the directions to put in my text, but can't find where to change the style. Here's that part on the bottom of the index.php file:

/Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'The place to shop for Art-o-licious Goodies');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
/Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'The place to shop for Art-o-licious Goodies');
}

30 Jan 2008, 8:23 AM
#10
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: change font weight?

gjh42:

A link to your site would let us give the exact answer for your text.

http://www.tracibunkers.com/zen/

30 Jan 2008, 8:29 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: change font weight?

"The place to shop for Art-o-licious Goodies" is controlled by h1#indexCategoriesHeading {}. Add that to your stylesheet if not already present and style it.

"Welcome Friend! Would you like to log yourself in?" is controlled by h2.greeting {}.

30 Jan 2008, 8:38 AM
#12
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: change font weight?

[QUOTE=gjh42;499527]"The place to shop for Art-o-licious Goodies" is controlled by h1#indexCategoriesHeading {}. Add that to your stylesheet if not already present and style it.

Does it matter where I add it? I'm not exactly sure which section it should go in.

30 Jan 2008, 8:44 AM
#13
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: change font weight?

I got it! :clap:
I put it in after the endwrappers, where the other headers were listed.

Thanks for your help!