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

Main Menu - Dropdown Issues

Discussion in 'Free Divi Community Forum' started by Ruth VanBuskirk, Aug 21, 2024.

  1. Ruth VanBuskirk

    Ruth VanBuskirk New Member

    Hello, I'm new to Divi and am running into an issue with the main menu on my website.

    First, the dropdown options on the menu don't show once I publish it. It's almost as if it can't show over-the-page content. The dropdown options do show when I'm in the visual editor.

    Second, there is a white bar under the menu/header once I publish it that is not there when I'm editing it.

    Third, on the mobile/tablet menu, the menu won't load at all - when I click on the menu icon, nothing happens.

    Additionally, the menu looks different on one page - but only sometimes - it looks like the specifications I set for the menu don't load or something. This doesn't happen all the time - only some of the time.

    I've attached screenshots of these issues. And I'm grateful for any help on any of them!

    Editing Mode: Drop-down is visible
    editing mode.png

    Published: See white bar and not able to view the dropdown options when hovering over the menu.
    Published.png

    Mobile Menu: Not able to select the menu here at all.
    mobile.jpg
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  2. Divi Booster

    Divi Booster Divi Expert

    Hi Ruth,

    The main issue with the header is that the CSS "overflow" property is being set incorrectly. The overflow property specifies what the browser does with content that is too big for the area of the page it is in.

    In the case of your main header, it's currently set to always show scroll bars (even if nothing is too big for the area, as is the case here), which is the cause of the white gap you're seeing.

    In the case of your menu module, it's currently set to hide any overflowing content. Since the drop-down menus are designed to extend outside the menu module area, they are being hidden and hence aren't displaying.

    You can sort both of these issues by either tracking down where you've set the overflow property on these elements and resetting it to the default, or by adding the following CSS in "WP Admin > Divi > Theme Options > General > Custom CSS":

    Code:
    Log In or Sign Up to view this code.
    For the gallery page with the different styles, I can see some additional styles being added, like so:

    Code:
    Log In or Sign Up to view this code.
    These are overriding your normal styles and if they are deleted, the header then looks like it does on other pages. The styles show up in the combined Divi stylesheet, so I can't say for certain where they have been added, but given that they only affect that one page, I'd check in the "Page Settings > Advanced > Custom CSS" area for that page. They are intermingled with some styles with the "dnxte_" prefix if that helps any in tracking them down. Once you find the styles, delete them (just the ones shown above), and that should fix up the header on that page.

    Hope that helps!
     
  3. Ruth VanBuskirk

    Ruth VanBuskirk New Member

    Thank you! This is super helpful. I was able to solve the dropdown issue on desktop and mobile with your help! I'm a little stuck on the gallery page. (I didn't actually build the site). I believe I'm looking at the page settings > Advanced > Custom CSS and it doesn't look like that code is anywhere. Is there anywhere else you'd suggest I look?

    thank you!
     
    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  4. Divi Booster

    Divi Booster Divi Expert

    Hey Ruth, I'm glad that helped with those issues.

    For the gallery page, can you first check in "WP Admin > Divi > Theme Builder" just to make sure there aren't actually two different templates (with two different headers) - one assigned to the gallery page and the other assigned to your other pages?

    I'm hoping that is what's causing the issue because otherwise I'm not quite sure where the styles are be coming from. Since the CSS rules themselves aren't restricted to a particular page, they should mess up the header on other pages as well if they were added in any global locations (e.g. the main custom CSS box, or within the menu module itself).
     
  5. Ruth VanBuskirk

    Ruth VanBuskirk New Member

    Thank you Dan, The Theme builder doesn't appear to be the issue either. I did noticed that the menu is looking correct on Google Chrome but incorrect on Safari. Do you have any ideas for why that is so?
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  6. Divi Booster

    Divi Booster Divi Expert

    Hey Ruth,

    I think the reason it looks different on the two browsers is that the correct styles and the incorrect ones both have the same priority so depending on the order they are loaded in by the browser one or the other will apply. Personally, I see the incorrect styles in Chrome.

    Since the styles are proving tricky to track down, another option is to override the styles using CSS to apply the correct values. I've had a go at coming up with the relevant CSS:

    Code:
    Log In or Sign Up to view this code.
    If you add that to the gallery page, it should hopefully get you closer to the correct the styles there. Clear any caches after adding it.

    I've probably not got everything looking identical (and I've ran out of time today), but give me a shout if anything still doesn't look right and I'll take a look when I'm next online.

    Good luck!