Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing default text font in product description


solardirect

Recommended Posts

Posted

It appears that the default font for the body text of the product description is Times New Roman (or similar). I don't see a setting in the stylesheet. Of course I could put in html code in every product description; but there must be a way to set this to something more suitable like veranda. Am I missing something?

 

Kirk

shop.solardirect.com

Boom... Big butta boom.

Posted

Create a stylesheet class with the properties that you want the product description to have.

 

Then edit catalog/product_info.php and assign the class to the product description.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

You should have some code in the stylesheet.css file like:

 

TD.main, P.main {

 font-family: Verdana, Arial, sans-serif;

 font-size: 13px;

 line-height: 1.5;

}

 

I believe that controls the products detail text, as well as some others. Yours probably has 11px for size as I took mine up to 13px to make it more readable. So the font family should be Verdana, Arial, sans-serif.

 

Hope that helps,

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Posted

So when you create a stylesheet class, what do the first letters do? Are they required? What would I use in this case?

 

TD.producttext {

font-family: Veranda, Arial;

font-size: 12px;

}

 

Is TD. the right prefix? And I presume in product_info.php I only use class=producttext?

 

TD.Main is not it... that only changes a few lines on that page, not the main text box.

 

I've tried adding one before with no luck???

Boom... Big butta boom.

Posted

Ok, I added the following to stylesheets:

 

TD.producttext {

font-family: Veranda, Arial;

font-size: 12px;

}

 

and changed code in product_info.php:

 

<td>

to

<td class="productText">

<p><?php echo stripslashes($product_info etc...

 

and IT WORKS. Thanks Daemonj for your help.

 

*** Still curious what the TD. in the stylesheet does???

Boom... Big butta boom.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...