InMotion Hosting Support Center

How do I rewrite my opencart website front page H1 tag without changing my title tag

Category: Website

2012-05-16 1:51 pm EST

Hits: 7,188
opencart v.
In admin, system, settings, store, title...when you type your store title tag, it sends the same text to your H1 tag.
I would like to edit my H1 tag without altering the title text. Is it possible with opencart?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


43,761 Points
2012-05-16 2:47 pm EST
Hello USAeshopFrance,

The site title tag and the H1 tag are one and the same. In the default template file for a category, the H1 seems to use same variable as the title. If that is the case, changing one directly affects the other. I have found no way to change it from the Opencart interface.


You must login before you can post a comment about this answer.



2014-09-22 2:35 am EST
Yes it is Possible by Edit your Code :
Open folder of your Theme and go to folder template/product/category.tpl.
There You see : $heading_title; in h1 tag
change The code into :
if($heading_title=='your Heading'){
$heading_title= "My Heading";
echo $heading_title;
}elseif($heading_title=='heading 2'){
$heading_title= "My Heading ";
echo $heading_title;
}elseif($heading_title=='title 3 '){
$heading_title= "My heading 3";
echo $heading_title;
<?php echo $heading_title; ?>
<?php } ?>

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!