Site logo

Archived topic

JS error

8 replies · Started by Anthony on May 10, 2018

Viewing posts 1–9 of 9

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?

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 :)

This archived topic is closed to new replies.