1. PROMO Subscribe our All Access Pass @ 75% OFF & 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. 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

Solved Divi Fullscreen Dropdown Menu

Discussion in 'Free Divi Community Forum' started by jorgv1991, May 20, 2021.

  1. jorgv1991

    jorgv1991 New Member

    Hi,

    I'm currently running into some challenges on this site: zerotolaunch.nl

    I'm using the divi menu module in the header and I would like it to be a hamburger icon on both desktop and mobile. When you click on the hamburger icon, a fullscreen dropdown menu should appear. So far so good...

    The issue I currently have is when you land on the site, you already see the dropdown menu instead of the actually page. This issue is probably caused because I'm trying to center the menu text in the middle of the page regardless of device. I'm not too happy with the positioning of the menu text either, because it centers the first menu item in the middle, which looks kind of weird on a longer mobile screen.

    How can I fix this? The position of the menu text should be responsive to screen length and the menu should only be visual after someone clicks the hamburger icon.

    Thanks in advance,

    Jorg
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    This is what I see:

    upload_2021-5-22_23-49-36.png

    Looks fine to me.
    You're using negative margin & custom width to manage the fullscreen menu, which is not ideal. Here's workaround using position fixed:
    Code:
    Log In or Sign Up to view this code.
     
  3. jorgv1991

    jorgv1991 New Member

    Hi,

    Thanks for the reply!

    I tried some things after my initial posted question here, which explains the difference between what I described and what you see on the screenshot. I've used your code snippet to create a fullscreen dropdown menu. Thanks for that :)

    Only issue I'm still running into is moving the menu items down a little bit. I have now added some top padding to the code you provided, although it causes the effect I want it somehow also interferes with the dropdown menu animation. It doesn't run as smoothly as it does without the top padding. Is there a workaround for this as well?

    Thanks
     
    1. PRO MEMBER PERKS Divi.Help Header AI Generator - Try the power of AI to generate a custom Divi header for you:Try Now
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

  5. jorgv1991

    jorgv1991 New Member

    Awesome! This fixed everything.... Thanks for the help :D
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now