Forums / Templates, Stylesheets, Page Layout / How to change the product name font

How to change the product name font

Locked

Views: 4,290

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
2 Jan 2008, 4:40 AM
#1
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

How to change the product name font

I've been stuck trying to change the font for the name of the product on the the Product Info page. Here is an example

http://www.artbeautiful.com/index.php?main_page=product_info&cPath=7_104&products_id=1623

I want to change the Verdana Italic "Les Coquelicots" in the gray color to Georgia. I tried a number of variations of this, with no success, including:

#productName {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.5em;
}

body #productName {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.5em;
}

h1#productName {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.5em;
}

#productinfoBody #productName {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.5em;
}

#productinfoBody h1#productName {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1.5em;
}

2 Jan 2008, 6:52 AM
#2
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: How to change the product name font

Which style sheet are you changing? Try the other one in the other template folder.

You mod should have worked, Recheck and see if chmod 644 is there.

Also do the obvious, clear the cache and recheck.

Cheers!
v2.2.1

2 Jan 2008, 3:02 PM
#3
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to change the product name font

Thanks, but I'm a little confused on your reply:

I use the includes/templates/mine/css/stylesheet.css and it's the only one I've been using. Which other are you suggesting I try?

chmod 644 is a permission setting? If so, for which file or folders? I now have a 644 on the stylesheet.css file and a 755 on the css folder. I have had no trouble with other css edits that could not be resolved with the right declaration.

I cleared the cache and browse history. No change.

Which mod are you suggesting should work? I show four I have tried.

Thanks again.

2 Jan 2008, 3:22 PM
#4
Kim avatar

Kim

Obaa-san

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

Re: How to change the product name font

h1 {

	color: #777777;

	font-size: 2em;

	font-weight:normal;

	font-style: italic;

	}

The above is the declaration you need to override - try adding the font-style:none to one of your other attempts to find the one that works.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Jan 2008, 5:30 PM
#5
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to change the product name font

Thanks, but I want to keep the italic style and change the font-family to Georgia, Times New Roman, Times, serif

That setting is in the body tag. I need for this font change to apply to all titles in all Product Info pages.

2 Jan 2008, 6:27 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

 #productName .productGeneral

is css code you require, via Firefox Web Developers Kit

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jan 2008, 7:01 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

 #productName { 
font-family: Georgia, Times New Roman, Times, serif;
font-size: 1.5em; 
}
#productGeneral { 
font-family: Georgia, Times New Roman, Times, serif;
font-size: 1.5em; 
}

Just tested above, works in IE6, IE7, Firefox and Safari

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jan 2008, 7:14 PM
#10
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to change the product name font

True, it does change the font, which puzzles me because 'productGeneral' is not an ID but a class, in the HTML. It also changes ALL the verdana to Georgia, which I don't want. Gotta be a solution here somewhere for Firefox.

2 Jan 2008, 7:19 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

#productName{
font-family: Georgia, Times New Roman, Times, serif;
font-size: 1.5em;
}
This does work..can send you screenshot if required

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jan 2008, 8:00 PM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

JackA:

Do you see the change in FF? I don't, but I see it in IE6. I'd appreciate a FF Win screen shot.
Added to default Classic template ..any product
i.e.
http://www.dezinashop.com/demo/index.php?main_page=product_info&cPath=21&products_id=28

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jan 2008, 8:23 PM
#14
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to change the product name font

Could you expand your last reply a little?

I see the font on your live demo page but I see the same css property that I tried in your css. I looked at your source code, but not sure what you mean by 'any product'. Is there a tpl_any_product.php I need to edit? Or ??? --- and I appreciate all your time on this.

2 Jan 2008, 8:47 PM
#15
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

#productName{
font-family: Georgia, Times New Roman, Times, serif;
font-size: 1.5em;
}
I added EXACT code above ONLY, to stylesheet of default Classic,
which is current template at my demo store
http://dezinashop.com/demo/
Now if you view any product, on its info/display page, i.e.
http://www.dezinashop.com/demo/index.php?main_page=product_info&products_id=23
you will see that font you required, Georgia, is showing
where you requested..
Did not alter any core template files
i.e tpl_product_info_display.php
as not required..stylesheet addition achieves your desired
result..don't forget to refresh browser, AFTER any
stylesheet changes you make..have checked IE6,IE7,Firefox
and Safari..works correctly in all...

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Jan 2008, 8:57 PM
#16
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to change the product name font

I must have something else going on. I use the same code and get a different result:

Would you mind looking at this in your FF Win and tell me what you see? I ALWAYS refresh each time.

http://www.artbeautiful.com/index.php?main_page=product_info&cPath=7_104&products_id=1623

2 Jan 2008, 11:42 PM
#17
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

JackA:

I must have something else going on. I use the same code and get a different result:

Would you mind looking at this in your FF Win and tell me what you see? I ALWAYS refresh each time.

http://www.artbeautiful.com/index.php?main_page=product_info&cPath=7_104&products_id=1623
In Firefox, italic font(not Georgia), in IE7, italic font( possibly Times New Roman),
larger size than in Firefox, Safari is same as Firefox, IE6..same as IE7..
Possible conflicting entry somewhere in your current template's stylesheet..
have you tried switching template to Classic,
and then adding my css code to Classic stylesheet?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

3 Jan 2008, 5:23 AM
#20
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to change the product name font

JackA:

I'm a 4-week-old with Zen Cart, so if I switch templates, can I switch back w/o problems?
Yes you can, and pleased to hear you have your new zencart
looking as you required
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others