W3C & Schema issues
-
Hello,
W3C complains about the ‘role’ elements in various tags. In a child theme I removed most of them but rather not mess too much with the general theme. Could these be made an option to include? or just remove them from all but the searchform?
Another W3C issues is the use of too many H1 tags I found that I had to add the following code in logo-group.php to ensure there were not too many H1 tags. Basically, I made the ‘site-branding’ H1 an H2 when there was any content but the front page. Which works out nicely.
$h1pp='h1'; if (is_single() || (is_page() && !is_front_page()) ) { $h1pp='h2'; } ?> ... <<?php echo $h1pp;?> class="site-title"> ... </<?php echo $h1pp;?>>
It would be nice if the theme either had an option or a plugin check to remove the itemscope and itemtype elements as well. I have used Add Meta Tags and now use WPSSO plugins, but there are a large number. If we are using the JSON+LD approach, these cause confusion with Google. Granted I removed them from content.php and content-page.php myself as those are the only contents I use. Perhaps drop the schema.org stuff entirely and let it be added by JSON+LD or another plugin?
Lastly, it would be a nice customization option to include both the logo and the header/sub-header text for the logo-group. One or the other does not look correct, both work quite nice. However, that is a reason for a child-theme as well.
Thank you for a great theme. Easy with which to work!
Thank you,
Edward L. Haletky
- The topic ‘W3C & Schema issues’ is closed to new replies.