Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Heading Title always bold

Heading Title always bold

Locked

Views: 4,048

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
30 Mar 2008, 9:13 PM
#1
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Heading Title always bold

Hi just a quick question.

Is there any way to unbold the heading titles on every page?

In my stylesheet I can change the size of the text and even the font, but not the font weight. Is there a way to fix this??

Thanks :smile:

-jR

30 Mar 2008, 9:36 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Heading Title always bold

niagarasoap:

Hi just a quick question.

Is there any way to unbold the heading titles on every page?

In my stylesheet I can change the size of the text and even the font, but not the font weight. Is there a way to fix this??

Thanks :smile:

-jR

The <h1> through <h6> heading tags I believe, are all predefined to be bold.

I you want to define the Heading Titles with your own font-weight I'm guessing you'll need to define your own and then remove the <h1> tags whereever they appear in each and every tpl_xxxxxxxx.php file.

30 Mar 2008, 10:00 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,625
Plugin Contributions:
0

Re: Heading Title always bold

Or use the CSS to use font-weight: normal;

30 Mar 2008, 10:15 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Heading Title always bold

You can change all <h1> tags sitewide to be whatever font weight you want by changing or adding that to the base h1 {} declaration at the top of your stylesheet; or you can change the <h1> on specific pages by using selectors like
#loginBody h1 {}
to target them.
Add any such below the base h1 declaration.

30 Mar 2008, 10:22 PM
#5
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Heading Title always bold

But if I add - font-weight:normal; under h1 it doesn't prevent it from being bold. All H1 still stays bold, since I'm guessing font-weight in h1 isn't defined in the custom stylesheet.

31 Mar 2008, 1:23 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Heading Title always bold

With a link to your site we could tell exactly what is happening with your <h1>s and how to fix them.

31 Mar 2008, 1:45 AM
#7
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Heading Title always bold

Oops sorry

http://niagarasoap.brinkster.net/zencart

Also I'm having trouble getting rid of the white space above my temporary graphic in the main.php

I think it's related to the h1 heading that was there before I removed it.

Your help always appreciated guys.

31 Mar 2008, 2:03 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Heading Title always bold

You have ```
h1 {
font-size: 2em;
font-family: Arial Narrow;
text-align: left;
color: #B08D00;
text-weight: narrow;
}

text-weight: narrow;
needs to be
font-weight: normal;

h1 {
font-size: 2em;
font-family: Arial Narrow;
text-align: left;
color: #B08D00;
font-weight: normal;
}


h1#indexDefaultHeading {display: none;}
31 Mar 2008, 2:29 AM
#9
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Heading Title always bold

hey so the bold text thing worked fine, thankyou.

But I tried putting in

h1#indexDefaultHeading {display: none;}

and it didn't change the gap. Is there somewhere specific I have to put in that code??

31 Mar 2008, 2:43 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: Heading Title always bold

There are several things contributing to that spacing.

h1#indexDefaultHeading {display: none;} will eliminate one, and
#indexDefaultMainContent p {padding-top: 0;} will eliminate another.

(The second would best be addressed by eliminating the useless <p> tag from your define_main_page.php.)

31 Mar 2008, 4:44 AM
#11
niagarasoap avatar

niagarasoap

New Zenner

Join Date:
Mar 2008
Posts:
28
Plugin Contributions:
0

Re: Heading Title always bold

perfect now it's just how I wanted it.

Thanks a bunch gjh42 :clap: