Duplicated and Tags – Theme Issue?

Posted in: Newspaper
Post count: 1

Hello everyone,

I’m experiencing some issues with HTML validation on my website. Specifically, I’m seeing errors related to duplicated tags, such as the <head> tag appearing multiple times on certain pages. Additionally, there are multiple <h1> tags within the same page, which I understand is not recommended for SEO or accessibility.

After running a check, the WordPress Happiness Engineers suggested that this could be an issue with the theme I am using. I’ve tried to fix the code manually, but without success.

Here are some details:

Issue encountered: Duplicated <head> and <h1> tags, along with AMP validation errors.
Theme in use: Newspaper
Steps taken so far: I have validated the code using the W3C Validator and AMP tools, both of which flagged these duplicate tags as errors.
I’m seeking help on how to resolve this problem. Should I consider switching to a different theme, or is there a way to fix the current one?

Thanks in advance for your assistance!

Post count: 27744

Hello,

First of all, we no longer recommend AMP because it is deprecated https://developer.bigcommerce.com/docs/storefront/wordpress/platform-integration/enabling-amp
The w3 validator unfortunately does not provide accurate results anymore.We have stopped trusting it altogether. Please use google’s structure data testing tool You can test any major site you can think about and you will see the w3c validator providing errors for each one.
Please check with the tagDiv Composer and disable the H1. For example, H1 from logo(header, footer, mobile, sticky): https://forum.tagdiv.com/topic/6-h1-tags-on-front-page-bing-have-deindexed-my-site/

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.