Friday, January 6, 2023
HomeWordPress Developmentjavascript - Cannot discover the proper class to shut the one-pager WP...

javascript – Cannot discover the proper class to shut the one-pager WP website cell menu when anchor hyperlink is clicked


might somebody assist me possibly? I’ve a one-pager WP website, menu contains anchor hyperlinks to totally different components of the web page. The issue is, the cell/hamburger menu stays open, when anchor hyperlinks are clicked. I attempted to analysis and repair the issue by making use of the code under, that may take away particular class (that’s set when the menu is opened) when any hyperlink is clicked contained in the cell menu.

However I am unable to get it to work.

This is the location: https://www.puutax.fi/

and here is the code:

jQuery(perform($) {
    $(".bdt-offcanvas li a").on("click on", perform(e){
        $("physique").removeClass("bdt-open");
    });
});

Any assist or pointing to proper course is very appreciated.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments