Archived topic
JS error
8 replies · Started by Anthony on May 10, 2018
Hi, on some pages I get this error in /themes/generatepress/js/a11y.min.js?ver=2.1.1
a11y.min.js?ver=2.1.1:1 Uncaught TypeError: Cannot read property 'className' of null
at HTMLAnchorElement.n (a11y.min.js?ver=2.1.1:1)
n @ a11y.min.js?ver=2.1.1:1
Hi Anthony can you provide a link to the site, so we can investigate?
On this page, when I click on one of the links in the footer the error appears (you can see if you keep the mouse clicked)
Don't think I'm seeing it.
When I click a link in the footer widgets it just takes me to a page.
Where are you seeing it?
if you have the web dev console opened and maintain the mouse clicked, you see the error. Nothing that prevents the links to work.
and by the way, I'm using chrome
It looks like you're using a custom navigation element, which is tripping up the JS.
Can you try adding the .main-nav class to the container surrounding the navigation <ul> element? You can look at the code for the primary and secondary navigation to see where it should go.
Let me know :)
Nice site BTW!
It solved the issue. Thanks.
You're welcome :)