Jump to content

How to change category_title to H1 for SEO-reasons


Recommended Posts

Hi all!

How do I change category_title to H1 for SEO-reasons?

I found this code in global.css

category.tpl */
h2.category_title {
   color:#E87B14;
   font-size:1.6em;
   font-weight:normal;



Can someone please help me with the right/new code.

Regards
Thomas

Link to comment
Share on other sites

please do as following
1. Go to change the theme file of category at /themes/yourtheme/category.tpl
Find following code, change H2 to H1

    <h2 class="category_title">{strip}
       {$category->name|escape:'htmlall':'UTF-8'}
       <span>
           {if $nb_products == 0}{l s='There are no products.'}
           {else}
               {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
               {$nb_products} 
               {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
           {/if}
       </span>{/strip}
   </h2>




2. go theme css file add H1 style that similar with H2 style which you have found at your previous post

hope this help

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...