Hi,
our company made accessibility tests and there is a problem with missing landmarks.
“landmark-one-main” is missing and there is also a region violation: “All page content should be contained by landmarks”.
Our admin said that he doesn’t want to touch it and that I should ask you what to do.
Can you help?
Thanks a lot
Gunnar
Hi Gunnar,
Please let us know the elements that you are using on your website so we can check them and improve.
Also, make sure that you are using the latest theme version 12.7.2. If you have an old version, make a website backup, and only after that update the theme.
Thank you!
Hi Calin!
Thanks for your fast reply! We are using Newspaper 12.7.1 and 12.6.8.
I asked our Admin to make the update. He always insists on doing it himself.
I will let you know when it’s done.
It’s for the following websites:
https://magazin.s-vorteilspartner.de/
https://s-quin-magazin.de/
https://www.starmag.online/
https://flin-magazin.de/
I am not sure about your question about the elements. We are using pages that are built with the standard tagDiv Composer, also standard header and footer templates. There is currently no <main> and other landmarks generated by the theme. Can you check it with the webbrowser or do you need screenshots or other info?
Thanks a lot!
Gunnar
Hello,
My recommendation is to wait 1-2 days, and a new theme update to be made (various fixes for the current theme update). Also, please make sure you have a complete backup of the site before the update, or best of all, do a test for each site separately on a staging.
After the update, please check if there are any landmarks that need to be generated, also please if you can provide some images of the elements where they should be to show them to the developers.
Thank you!
Hi, I m having the same issue “Document does not have a main landmark.” when i ran a test through PageSpeed Insight.
https://imgur.com/a/IGX14Xx
I have just updated to the latest 12.7.3 version and cleared all cache, but the issue still persists, any help is appreciated.
Thanks!
Hi fuenson, I understand the situation.
Please do like this, use a child theme and in functions.php add this code:
add_filter('the_content', function($content) { return '<main role="main">' . $content . '</main>'; });
This should resolve the problem.
Let me know the results!
