Post by Jaap » Tue Apr 23, 2024 6:53 pm

At the moment building a new shop in OC 3.0.3.9.
The H1 tag is used for the logo, this wasn't in older versions I used.

In OC 3.0.3.9 every page has an identical H1!

Code: Select all

<div id="logo">          <h1><a href="https://shop.com/index.php?route=common/home">shop</a></h1>
          </div>
Search engines use <h1> tags to understand the main topic of a page

So isn't it beter to remove this tag and generate one representing the main topic of the content.
For sure I'll do it.

In template common header find

Code: Select all

<h1><a href="{{ home }}">{{ name }}</a></h1>
And just remove the H1 tags.
After it refresh modifications.

Now you can start every category or productpage with a representative H1.

User avatar
Active Member

Posts

Joined
Fri Apr 15, 2011 12:10 am
Location - the Netherlands

Post by Elevate » Tue Apr 23, 2024 11:14 pm

Thank you for pointing this out.
As long as you use an image as your logo, you're fine though. It's only if you use Text as your logo because it's in the 'else' part of the statement.
https://github.com/opencart/opencart/bl ... eader.twig

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8tewebsitedevelopment.com/contact
https://www.elev8tewebsitedevelopment.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 14 guests