1. LIMITED-TIME SALE Be a Pro Member @ $99 / lifetime & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed.Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Can't get my mobile/tablet menu to close when clicking an anchor link

Discussion in 'Free Divi Community Forum' started by Check Digital, Jan 14, 2025.

  1. Check Digital

    Check Digital New Member

    I'm having issues with a template I'm using and can't get the mobile/tablet menu to close when clicking on an anchor link. It closes when clicking on a page as this opens a new page and refreshes the browser but I can not for the life of me get it to close when clicking an anchor link. It's probably a really easy fix and I'm just being dumb!

    The website link is: https://staging3.embersband.co.uk/

    Thanks,
    Kieran
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    That would require custom jQuery coding.

    Try to paste the below code at WP Admin > Divi > Theme Options > Integration > Body Code:
    Code:
    Log In or Sign Up to view this code.
     
  3. Check Digital

    Check Digital New Member

    I tried this but it then causes the menu to completely stop functioning, it stops the menu from opening unfortunately.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Tried to view the error, but it seems like you already changed it to show the desktop menu on mobile, which is one of the alternative.