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

Solved Wait untill requested page is loaded before closing mobile menu

Discussion in 'Free Divi Community Forum' started by RSPCT2ALLWEBDVLPRS, Jan 21, 2025.

  1. RSPCT2ALLWEBDVLPRS

    RSPCT2ALLWEBDVLPRS New Member

    On this page: illustrateeg.nl the mobile menu directly closes when an menu item is clicked. This gives a bit of weird user experience when clicking, first showing the active page once again and then load the requested page, makes the screen flickr or give the user the impression the requested page has already loaded.

    It looks like on many sites the default is for the menu to wait until the requested page has loaded and only then close the mobile dropdown menu.

    Any ideas what could be causing this and how to fix?

    Regards,

    Malik
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    That's the default behavior / JS added by Divi theme.

    Here's a hack to avoid that. Add the below at WP Admin > Divi > Theme Options > Integration > Body Code:
    Code:
    Log In or Sign Up to view this code.
     
    RSPCT2ALLWEBDVLPRS likes this.
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now