1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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. Now it works with Divi 5 as well!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. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Visual Stability & can I delete this code?

Discussion in 'Support Forum' started by Tom Malecha, Nov 7, 2023.

  1. Tom Malecha

    Tom Malecha New Member

    Two more questions regarding my site https://pragmatic.video where I am running a header / mega menu built with Divi Block
    1. Is there a way to improve visual stability of the header while loading?
    2. There is code for a collapsible mobile menu in the Divi Builder. Can I remove this? What is it for? It seems to be not visible/used on my site.

    Thank you.


    upload_2023-11-8_7-45-29.png
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Not sure what you meant by that. But I see that there's jQuery error on your site. Try to edit your header in Divi Theme Builder & switch to wireframe mode to look for 'Code For Mega Menu' & go to the settings & look for .match(/\\d+/)

    Change it to .match(/\d+/)

    That should fix the error.

    As for your mobile menu, it doesn't show up on click. This is because you seem to remove the related CSS, causing it to malfunction.

    To add it back, add a new code module & add the below CSS:
    Code:
    Log In or Sign Up to view this code.
    This is for collapsible feature for your mobile menu child items. Removing it will just disable the feature of collapsible mobile menu.

    But it's best not to simply remove any existing code. Each serves their own purposes, such as the CSS code above.
     
  3. Tom Malecha

    Tom Malecha New Member

    Thank you for your support.

    This is weird: When changing .match(/\\d+/) to .match(/\d+/) my menu "Portfolio" gets a submenu on desktop. It's a single level menu, so there should be no submenu. How can I fix this?
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom footer designs for you to choose from:View Demo
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    That's because it's added by mega menu. As per the screenshot below, db-mega-3 meaning the mega menu will be shown on menu item number 3. That's why the menu item number 3 is getting a submenu (mega menu).

    upload_2023-11-8_17-8-46.png
     
  5. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    But it seems like your mega menu is still not showing. Perhaps you deleted mega menu related CSS, which causing it to malfunction. It's best for you re-import the mega menu block.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  6. Tom Malecha

    Tom Malecha New Member

    Thank you for your help, but can you please explain? Where is it added? How can I remove it? I did not add it on purpose.
     
  7. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Are you saying that you're not looking to have mega menu?

    Then you will need to switch to wireframe mode & delete the Mega Menu sections, as per screenshot below:

    upload_2023-11-8_17-25-31.png
     
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More