area landmarks

Posted in: Newspaper
Post count: 6

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

Post count: 35449

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!

Post count: 6

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

Post count: 35449

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!

Post count: 24

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!

Post count: 35449

Hi,
I asked our developers to check this out.

Post count: 24

Hi Calin
may i know is there any fix for this issue? Thanks a lot

  • This reply was modified 9 months by fuenson.
  • This reply was modified 9 months by fuenson.
Post count: 35449

Hi,
This is in progress.
Thank you!

Post count: 24

Hi @Calin, I have just updated to the 12.7.4, but the issue “Document does not have a main landmark.” still persist, may I know how to fix it? Thanks

  • This reply was modified 6 months by fuenson.
Post count: 35449

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!

Post count: 24

It’s all good now, thank you!

Post count: 24

@Calin Hi, I would like to know do I need to manually remove the code I added in functions.php before I update the theme to the newest version? Thank you.

Post count: 35449

Hi,
If that’s the only code added in the child theme, you can simply disable the child theme. If you’re using it for other settings as well, you can just remove or comment out that code, since it’s now included in the main theme.

Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.