Jump to content

Changing headline size and normal font size just in the category description


Hetko

Recommended Posts

How can I change the headline and the normal font size just in the category description?

 

What I know is I have to create a custom CSS class for example "customfont" and link this to a CSS file in which I have a code like:

 

.customfont h1 {font-size: 13px!important;} or

.customfont h2 {font-size: 12px!important;} or
.customfont p {font-size: 11px!important;}
 
But how can I link this "customfont" Class to  the product description in the category.tpl file?
This is the code in category.tpl:
{if $category->description}
    <div class="cat_desc">
    <span class="category-name">
        {strip}
        {if isset($categoryNameComplement)}
            {$categoryNameComplement|escape:'html':'UTF-8'}
        {/if}
        {/strip}
    </span>
    {if Tools::strlen($category->description) > 350}
        <div id="category_description_full" class="rte">{$category->description}</div>
    {else}
        <div class="rte">{$category->description}</div>
        {/if}
    </div>
{/if}
 
And where do I have to put the .customfont code? Into global.css, category.css or in a custom.css file?
 
Any help for this is appreciated!
Link to comment
Share on other sites

Yes thanks! Putting this into category.css worked! But however the text "women" in your example isn't the headline in my theme anymore.

H1 is made in the product description and also H2.

 

Do you know a code on how to change this?

post-1066606-0-49371100-1442609830_thumb.png

Link to comment
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...