Jump to content
DARKF3D3

[SOLVED] Change product description font style

Recommended Posts

Hello, I don't understand how to change font and font size of product description on PS1.7.4 because the style is wrote directly into product description span:

<span style="font-size:10pt;font-family:Arial;font-style:normal;">The best is yet to come! Start the day off right with a positive thought. 8,2cm diameter / 9,5cm height / 0.43kg. Dishwasher-proof.</span>

Any help?

Edited by DARKF3D3 (see edit history)

Share this post


Link to post
Share on other sites

This is depending on the theme. Usually it is enough to add a few lines into the custom.css of your theme folder: "your theme"\assets\css\custom.css

like:

 #description .product-description{
     font-family: "Times New Roman", Times, serif;
     font-size: 24px;
 }

 

if it is fixed in the product description I would change it to a css class in the product.tpl file:

                   {block name='product_description'}
                     <div class="product-description">{$product.description nofilter}</div>
                   {/block}

 

 

 

Edited by christian_at_joseph
additonal (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

the span style description is added in the backoffice to the product description.

Select the product -> show source code -> remove it. :)

(at least this was the case with the demo data)

 

Edited by christian_at_joseph (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
On 11/7/2018 at 7:26 AM, christian_at_joseph dice:

the span style description is added in the backoffice to the product description.

Select the product -> show source code -> remove it. :)

(at least this was the case with the demo data)

 

 

You're right... I spent so much time trying to change style with css, then I noticed that the default PS products have that style added directly into the descriprion.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More