1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
HOT Divi.Help Pro One-Page Layouts - Beautifully crafted Divi layouts for you to kick start Divi sites.
View All Pro One-Page Layouts
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 - Premade dynamic background hover design for your Divi site without using any plugins: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 Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile: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.