Page 1 of 1
Multiple H1 Tags
Posted: Sun Sep 02, 2012 11:42 am
by shaun250958
When I run an SEO Analyser in something like Bing Webmaster it tells me that main page has errors:
SEO Analysis Detail (Beta)
SEO Suggestion There are multiple <h1> tags on the page.
Severity High
Error Count 7
Non-Compliant Pages 1
Recommended Action Remove redundant <h1> tags from the page source, so that only one <h1> tag exists.
How do I fix this?

Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 1:02 pm
by leo
The headingcolumn contains h1 tags
Code: Select all
<div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
in the module_column.tpl file.
Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 1:45 pm
by shaun250958
This is line 28 of my code but what do I do with it?
Do I delete the line?
Do I edit the line so that h1 is h2?

Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 2:45 pm
by leo
The easiest way it to delete them. But you can change it to h2,h3 etc. It depends on you, and your layout.
Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 3:06 pm
by shaun250958
I changed them to h7 and the resultant template looked OK.
However, it only fixed 2 out of the 7 - SEO Analysis tells me that I still have 5 h1 Tags: My Homepage Header, Categories Header, Featured Products Header, Cart ^ Header, and Information Header.
I have gone into other .tpls in the same folder (e.g. homepage.tpl and category.tpl) and changed h1 to h7 but I can't fixed the other 5...
Any suggestions?

Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 3:17 pm
by leo
h7 doesn't exist.
Code: Select all
http://www.w3schools.com/tags/tag_hn.asp
files contain h1 tags:
Code: Select all
leo@jleo:~$ grep -iR h1 ~/AlegroCart/upload/catalog/template/
/AlegroCart/upload/catalog/template/default/module/information.tpl:<div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/cart.tpl: <div class="headingcolumn" style="cursor: pointer" onclick="ShowCart()"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/manufacturer.tpl: <div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/category.tpl: <div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/converter.tpl: <div class="headingcolumn" style="cursor: pointer" onclick="OpenConversion()"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/review.tpl:<div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/module/module_column.tpl:<div class="headingcolumn"><h1><?php echo $heading_title; ?></h1></div>
/AlegroCart/upload/catalog/template/default/content/manufacturer.tpl: echo '<div style="text-align: center;"><br><h1>' . $text_error . '</h1></div>';
Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 3:44 pm
by shaun250958
Tried them all but it doesn't fix the last 5 found by Bing Analyser...
But thanks for you help anyway...

Re: Multiple H1 Tags
Posted: Sun Sep 02, 2012 11:59 pm
by leo
There is 1 more:
Code: Select all
/catalog/controller/addtocart.php:
$output = '<div class="headingcolumn" style="cursor: pointer" onclick="ShowCart()"><h1>' . $language->get('heading_title') . '</h1></div>' . "\n";
Re: Multiple H1 Tags
Posted: Thu Dec 19, 2013 3:54 am
by angleblue63
I uploaded a new file. No change. It's not using SSL just for the shop. The path is right.
_________________________
www.crosswordchamp.com
Re: Multiple H1 Tags
Posted: Thu Dec 19, 2013 4:37 am
by Brent
angleblue63 wrote:I uploaded a new file. No change. It's not using SSL just for the shop. The path is right.
I assume you have set in settings the use ssl tag. I also assume you have an ssl certificate installed.
In config.php, you have to add the path of your ssl server.