Getting Hamburger to close with anchor tags

  • Resolved
    Posted in: Boldial WP  

  • Member
    January 3, 2019 at 5:44 am #17064

    Hi – I set up my site with anchor tags on the homepage. When I use these on mobile the menu doesn’t close until the user hits the ‘x’. I am wondering if I can have the menu close on click of the anchor tag as well. I tried playing with some JS on the page that uses anchors but I wasn’t able to get it working.

    $(‘.menu-item ul li a’).on(‘click’, function () {
    $(‘.menu-item’).addClass(‘ish-ph-mn-be_resp-close ish-icon-cancel’);

    Any help is appreciated, thanks!

    Sorry, this forum is for verified users only. Please Login / Register to continue
    or get 6 months support forum access to all forum topics for a reduced price.

Comments are closed.