SEO Errors? Element 'Style' not allowed

Posted in: Newspaper
Post count: 5

Hi,

I am not technically minded and don’t know anything about coding – hence my question!

I ran an SEO site report and received over 2000 errors for the 20 pages on my site all relating to the below. How do I fix this? I really have no idea.

Thanks!

This is the type of error I have on every single page and post. Around 100 errors per page.

Element “style” not allowed as child of element “div” in this context
At line 472, column 14
Element “style” not allowed as child of element “div” in this context
At line 509, column 55
Element “style” not allowed as child of element “div” in this context
At line 518, column 14
Element “style” not allowed as child of element “div” in this context
At line 546, column 14
Element “style” not allowed as child of element “div” in this context
At line 581, column 7
Element “style” not allowed as child of element “div” in this context
At line 595, column 7
Element “style” not allowed as child of element “div” in this context
At line 654, column 14
Element “style” not allowed as child of element “div” in this context
At line 689, column 7
Element “style” not allowed as child of element “div” in this context
At line 702, column 7
Too many errors. Any further errors will be ignored. See the full list in Validator.

Post count: 21065

Hello!

We recommend you to use Yoast SEO plugin because only this one is a tested plugin with our theme.

Thank you!

Post count: 5

Hi,

From what I am told this will not resolve this issue with the code on the page.

This is the impact I have been informed of:

A substantial number/critical type of HTML errors can lead to certain parts of offending pages not being correctly indexed by Google as their crawlers simply are unable to read the code if it does not conform to HTML standards. It’s quite easy to make HTML errors and without a tool to carefully scan through your code. Your SEO rankings can quickly evaporate after making content changes to your pages, and realizing far too late that Google can no longer read these new changes as you’ve incorrectly placed an attribute.

Google’s spokesman John Mueller elaborated on this saying that:

While HTML validity is not a direct ranking factor, critical HTML errors get in the way of Google achieving the following:

successful crawling of a site and indexation of SEO relevant pages;
crawling, reading, and understanding of structured markup on a page;
rendering your site’s pages correctly on mobile devices and displaying different versions of your site correctly based on cross-browser compatibility.

Post count: 27744

Hello,

Unfortunately, to help you I need more information about what plugins you use, a link to your website if you made some changes to the theme files.
Also, if you have a child theme.

Thank you!

Post count: 5

Hi,

To answer your questions:

– I have made no changes to the theme files.
– I do not have a child theme
– Plugins (9 in total) are the ones that came with newspaper (4 tagdiv ones) + yoast + google console + quantcast choice + akismet + sucuri

Thanks!

Post count: 27744

Hello,

Please disable the SUCURI plugin and check after that.
As far as I know, this plugin does not work with our theme and functionality issues may occur.
Also, you can check this topic https://docs.contentviewspro.com/fix-issue-element-style-not-allowed-child-element-div-context/
Also, please make sure the theme install was done correctly
Install via WordPress -> https://forum.tagdiv.com/install-via-wordpress/
Install via FTP -> https://forum.tagdiv.com/install-via-ftp/

Thank you!

Post count: 5

Thanks.

I’ve disabled sucuri.

Regarding the other link – this appears to refer to a plugin called contentviews pro that I don’t have? Will it actually make any difference as the code appears to be specific to the plugin?
https://docs.contentviewspro.com/fix-issue-element-style-not-allowed-child-element-div-context/

Post count: 27744

Hello,

Please provide the link to your website to inspect it.

Thank you!

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