Post by radi8tor » Fri Sep 28, 2018 4:41 pm

Hello,

I have seen in some articles about SEO that <h1> tag is important because of SEO keywords. I have checked my site and <h1> tag is present but always include the shop logo with no text on all pages.
I would like to have <h1> tag include the category name or product name (if product is displayed).
Do you know some extension which does this or maybe a small code change in twig file(s)?

Thank you!

OC version 3.0.2.0
Last edited by radi8tor on Thu Nov 01, 2018 10:38 pm, edited 1 time in total.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by storiqax » Fri Sep 28, 2018 6:31 pm

Could you post a screenshot of what are you talking about?

Your <h1> could be your page title on your products pages for example.

User avatar
New member

Posts

Joined
Tue May 29, 2018 10:19 pm

Post by paulfeakins » Fri Sep 28, 2018 6:48 pm

Yes that's good advice, roughly in terms of importance for SEO:

URL keywords
Title tag keywords
H1 keywords
H2 keywords
etc.

What theme do you use?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by radi8tor » Sat Sep 29, 2018 12:15 am

paulfeakins wrote:
Fri Sep 28, 2018 6:48 pm
What theme do you use?
It is from Zemez:
https://www.templatemonster.com/templat ... ords=67020

Unfortunately it creates <h1> tag on product pages and category pages like this:

Code: Select all

<h1 class="logo">
	 	<a href="https://siteURL">
		<img src="https://siteURL/image/cache/catalog/logo-201x53.png" title="storeNAME" alt="storeNAME" class="img-responsive">
	</a>
</h1>

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by radi8tor » Sat Sep 29, 2018 12:20 am

storiqax wrote:
Fri Sep 28, 2018 6:31 pm
Could you post a screenshot of what are you talking about?
<h1> should be the same as category name or product title but this is not the case.

Attachments

2018-09-28_18-17-41.jpg

2018-09-28_18-17-41.jpg (13.58 KiB) Viewed 4372 times


New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by paulfeakins » Sat Sep 29, 2018 12:23 am

So you could change the <h1> to <div class="h1"> and then in the CS change h1 to .h1 in the appropriate place.

Then add the <h1> around the product name.

If that makes no sense, consider posting on Commercial Support for paid help.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by storiqax » Sat Sep 29, 2018 12:25 am

radi8tor wrote:
Sat Sep 29, 2018 12:20 am
<h1> should be the same as category name or product title but this is not the case.
I'm not sure if I understand correctly what we see in the above screenshot.

There shouldn't be any <h1> tag, neither in menu or breadcrumb.
Everything seems fine.

User avatar
New member

Posts

Joined
Tue May 29, 2018 10:19 pm

Post by radi8tor » Sat Sep 29, 2018 12:31 am

paulfeakins wrote:
Sat Sep 29, 2018 12:23 am
So you could change the <h1> to <div class="h1"> and then in the CS change h1 to .h1 in the appropriate place.

Then add the <h1> around the product name.
Thanks for the tip, will try to do it on weekend. :D

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by storiqax » Sat Sep 29, 2018 12:39 am

paulfeakins wrote:
Sat Sep 29, 2018 12:23 am
So you could change the <h1> to <div class="h1"> and then in the CS change h1 to .h1 in the appropriate place.
Then add the <h1> around the product name.
If that makes no sense, consider posting on Commercial Support for paid help.
For some reason the guy who made it is using the <h1> tag for the logo.
The above answer from Paul should work with few tweaks:
Just change the <h1> to <div class="logo"> and on the product's title change the <h2> tag to <h1>.
Also change the <h2> tag to categories, to <h1>.
Last edited by storiqax on Sat Sep 29, 2018 12:43 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Tue May 29, 2018 10:19 pm

Post by radi8tor » Sat Sep 29, 2018 12:41 am

storiqax wrote:
Sat Sep 29, 2018 12:25 am
There shouldn't be any <h1> tag, neither in menu or breadcrumb.
Everything seems fine.
There should be <h1> tag to enhance SEO of the site. Google reads this tag and it works as a keyword. My site is missing this important SEO keyword.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by storiqax » Sat Sep 29, 2018 12:44 am

radi8tor wrote:
Sat Sep 29, 2018 12:41 am
There should be <h1> tag to enhance SEO of the site. Google reads this tag and it works as a keyword. My site is missing this important SEO keyword.
Check my above answer ;)

User avatar
New member

Posts

Joined
Tue May 29, 2018 10:19 pm

Post by radi8tor » Sat Sep 29, 2018 3:35 am

Thanks for all the help. I have managed to do these changes.

Is there a way to include on the home page the webshop name in <h1> tag?
It was previously done using the logo but when the logo has <h1> tag then all pages have this tag.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm
Who is online

Users browsing this forum: nonnedelectari and 404 guests