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 Collapse submenu items in the mobile menu

Discussion in 'Free Divi Community Forum' started by Jointly, Nov 1, 2019.

  1. Greg Whitcoe

    Greg Whitcoe New Member
    Divi Ultimate Header Plugin

    This is all fantastic! Do you know how to change the icon (so it's different than the parent icon) on the second level menu link? Thanks!
     
    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.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    You can find the icon code here: https://dividezigns.com/divi-icon-codes/
     
  3. Greg Whitcoe

    Greg Whitcoe New Member
    Divi Ultimate Header Plugin

    1. PRO MEMBER PERKS Divi Block Pro - Premade card carousel design for your Divi site without using any plugins:View Demo
  4. GiulioGroebert

    GiulioGroebert New Member

    Hi, thanks for the code. Its working now, but the background color from my whole submenu is now transparent (on the mobile version). I want to have it the same color like my menu on the top. Also the submenu is not width enough, the + button is behind the text.
    Could you guys help me how I can fix this :).
    My webpage is: www.giulioandelena.com

    thanks in advanced.
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    You can change the mobile menu background color in the Menu Module Settings > Design > Dropdown Menu > Mobile Menu Background Color.
    Go to your menu module settings & set margin left and right to be: -10vw
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  6. GiulioGroebert

    GiulioGroebert New Member

    Hi, Thanks for your fast reply. The background color didn't changed a while, but after I deleted my browsers cache I could manage this.
    Thanks for the settings. I just have one thing now: the + button is not really on the same height like the letters can I bring the + button a little bit more up?
     
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    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
  8. GiulioGroebert

    GiulioGroebert New Member

    perfect :) thanks a lot
     
  9. GiulioGroebert

    GiulioGroebert New Member

    okay, there is one more problem :D. its not for the mobile. its for the desktop version. the sign next to the words in the sub menu is hidden from the text. is it possible that the whole text is in one line and the sign next to the text. I tried to set margin left and margin right to -50 but there didn't changed anything.

    thanks in advanced.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Beautify your Divi archive / category page with 15 different premade blog designs:Learn More
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi >Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  11. martynch

    martynch New Member

    Hi all,

    Divi 4 here using theme builder, the dropdown works a treat but the menu does not move to the left, it just still drops down under the Hamburger, how can I move it to the left.

    Thanks
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  12. Divi.Help

    Divi.Help Administrator
    Staff Member

    You will need plenty of custom CSS to achieve that.

    Upon further Google searching, here's a freebie that include slide in hamburger menu for Divi Theme Builder: https://jnmwebcreations.com/freebie-divi-slide-in-menu-layout-4/
     
    martynch likes this.
  13. Chad Williams

    Chad Williams Member
    Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Code works ....Thanks again!!
     
    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  14. Derek@Precept

    Derek@Precept New Member

    Hi
    Just want to say thankyou for this code it worked a treat on a Tablet, but one small issue is on a mobile the width of the dropdown is too narrow can you tell me how to make it wider. Please see screenshot which I have uploaded. Our website is www.preceptscotland.org

    Many Thanks your help will be very much appreciated

    Derek

     

    Attached Files:

  15. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Freelancer' Divi layout for all Pro members:View Demo
  16. Derek@Precept

    Derek@Precept New Member

    Hi many thanks for your help, that has worked but fills the full width of a mobile screen what I was hoping for is to have adjustable width so I can adjust to our requirements.

    Kind Regards
    Derek
     
  17. Milena

    Milena New Member

    Buongiorno,
    Ho questo codice nel menu a larghezza intera

    <style>
    / * abilita la classe di seguito una volta terminata la modifica del menu * /


    .fullwidth-menu {
    opacità: 0;
    in alto: 0vh;
    visibilità: nascosta;
    }


    .line {
    blocco di visualizzazione;
    posizione: assoluta;
    altezza: 3px;
    larghezza: 100%;
    sfondo: # 000;
    opacità: 1;
    -webkit-Transition: .1s Facility-In-Out;
    -moz-transizione: .1s facilità-in-out;
    -o-transizione: .1s facilità-in-out;
    transizione: .1s facilità-in-out;
    }

    .fullwidth-open.open .line {
    sfondo: # 000;
    }

    .Linea 1 {
    in alto: 15px;
    }
    .linea 2 {
    in alto: 25px;
    larghezza: 100%;
    }

    .line-3 {
    in alto: 35px;
    larghezza: 100%;
    }

    .fullwidth-open.open .line-1 {
    in alto: 25px;
    larghezza: 100%;
    -webkit-transform: ruota (135deg);
    -moz-transform: ruota (135deg);
    -o-transform: ruota (135deg);
    trasformare: ruotare (135deg);
    }

    .fullwidth-open.open .line-2 {
    display: nessuno;
    }

    .fullwidth-open.open .line-3 {
    in alto: 25px;
    larghezza: 100%;
    -webkit-transform: ruota (-135deg);
    -moz-transform: ruota (-135deg);
    -o-transform: ruota (-135deg);
    trasformare: ruotare (-135deg);
    }

    .fullwidth-menu-open {
    opacità: 1! importante;
    in alto: 0! importante;
    visibilità: visibile! importante;
    }

    .fullwidth-menu {
    -webkit-Transition: tutti gli 0.5 sono facili! importante;
    -moz-transizione: tutti gli 0,5 sono facili! importante;
    -o-transizione: tutti gli 0,5 sono facili! importante;
    -m-Transizione: tutti gli 0,5 sono facili! importante;
    transizione: tutti gli 0,5 sono facili! importante;
    }
    .main-menu-item ul {
    text-align: center;
    display: nessuno;
    imbottitura: 0;
    margin-top: 50px;
    }

    .toggle-sub-menu {
    cursore: puntatore;
    }

    Vorrei rimuovere + e - e far funzionare il menu facendo clic sul testo.
    Mi potete aiutare?
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Modern & powerful Agency Divi layout pack, featuring team carousel, sliding menu, etc.View Demo
  18. Divi.Help

    Divi.Help Administrator
    Staff Member

    Check out this tutorial: https://www.divicio.us/tutorials/ho...eep-parent-links-clickable-on-mobile-devices/

    There's an option to disable the parent menu links.
     
  19. kumarkuldeep6

    kumarkuldeep6 New Member

    I use the normal header and a theme builder header on another page to get different menus on different pages.
     
    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
  20. Luciano

    Luciano New Member

    Hello, I have a problem. When I add the script, the Icon is visible on the right of the Mobile menu but if i click on icon for open the sub menu, the click open the menu page and not open collapse menu.
     

    Attached Files: