Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange h tag structure #4

Open
MaDoGK opened this issue Mar 3, 2023 · 1 comment
Open

Strange h tag structure #4

MaDoGK opened this issue Mar 3, 2023 · 1 comment

Comments

@MaDoGK
Copy link

MaDoGK commented Mar 3, 2023

I'm helping a friend with his Shopify page. The site has a strange h-tag structure. For example, the add to cart pop-up shows with an h2 tag 'Just added to your cart', which is the very first h-tag in the source code, followed by an empty h3 tag, and then the logos are set as h tags. Here's the h-tag structure:
image

I thought this was a problem with his site, but when I checked the debut demo site, it has the same problem.
image

We manually edited the source code, removing the h tags, but then the shop started to act strangely, so we had to revert back to the old setup. This h-tag structure isn't great for SEO and I'd love to correct it. Is there a way to correct the problem without breaking the page?

@mmarienko
Copy link
Owner

I see the report on https://validator.w3.org/

Screenshot 2023-04-01 at 4 35 28 PM

You could fix the h1>h2 first error by changing code to

Screenshot 2023-04-01 at 4 36 02 PM

It would be enough for good h SEO and resolve your issue. I don't find any bugs after.

You could push the change to PR and I'll merge it into the repo.

Let me know if you have any more questions, otherwise, you can close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants