Home Forums Support JS error

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #572127
    Anthony

    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

    #572211
    David
    Staff
    Customer Support

    Hi Anthony can you provide a link to the site, so we can investigate?

    #572488
    Anthony

    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)

    https://www.abtasty.com/fr/evenements/

    #572504
    Leo
    Staff
    Customer Support

    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?

    #572508
    Anthony

    if you have the web dev console opened and maintain the mouse clicked, you see the error. Nothing that prevents the links to work.

    #572509
    Anthony

    and by the way, I’m using chrome

    #572544
    Tom
    Lead Developer
    Lead Developer

    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!

    #572592
    Anthony

    It solved the issue. Thanks.

    #572594
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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