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

Category: Website

USAeshopFrance
Asked:
2012-05-16 1:51 pm EST

Hits: 3,832
opencart v.1.5.1.3
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

-2

Scott
Staff
19,427 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.

Thanks!
-ScottM

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

OTHER ANSWERS

2

ankur.ahuja
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 :
<h1>
<?php
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;
}else{?>
<?php echo $heading_title; ?>
<?php } ?>
</h1>

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!