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.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Full width mobile and tablet menu.

Discussion in 'Free Divi Community Forum' started by Zubaida, Jun 12, 2025.

  1. Zubaida

    Zubaida New Member

    IMG_5515.png Hello, i am trying to create a full width menu for mobile and tablet. Like this website: https://mobelmedia.com/selevenedu/

    and this is my website: https://mobelmedia.com/umnasserfinland/about-us/

    i have achieved almost similar result by using css in Theme Customisation > Additional css. However, i want two more things. Firstly, if i scroll the menu should stay on the screen like the sample site. Secondly, the menu when open should cover the header section from top as well and the cross sign should be placed inside the menu.

    Following is the CSS code:

    /*changing the Divi hamburger menu to X*/
    .mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d';
    }
    /*rotating the Divi Menu icon*/

    .mobile_menu_bar:before {
    transition: all .4s ease;
    transform: rotate(0deg);
    display: block;
    }


    /*rotate the Divi Menu icon on click*/

    .mobile_nav.opened .mobile_menu_bar::before {
    transition: all .4s ease;
    transform: rotate(90deg);
    display: block;
    }

    /* Remove the top line in the mobile menu*/
    .et_mobile_menu {
    border-top:0;
    }

    /*making the Divi Menu full width*/
    .et_pb_menu .et_mobile_menu{
    min-width: 105vw;
    padding-top: 30%!important;
    margin-left: -45vw;
    padding-bottom: 100vh!important;
    }

    /*removing the line from the menu items and adding line height*/

    .et_mobile_menu li a {
    padding:10px 10px!important;
    border-bottom: none!important;
    }

    currently this code is not inserted so you will see a normal mobile menu.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You will need to set the menu section to be fixed on mobile & set negative margin top for the mobile menu + high z-index.

    Here's the CSS you could try:
    Code:
    Log In or Sign Up to view this code.
     
  3. Zubaida

    Zubaida New Member

    should i put this css code inside the custom css tab of menu module?
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Put it in WP Admin > Divi > Theme Options > Custom CSS.
     
  5. Zubaida

    Zubaida New Member

    IMG_5521.png IMG_5522.png IMG_5523.png Great. I have combined your code with mine and it is working perfectly but the header section is sticky as you can see in the screenshot. I don’t want the header to be sticky. Secondly, i have two menu one for English pages ( Global header ) and the second is for Arabic pages ( custom header ) . You can see in screenshot that the custom header for arabic pages is not displaying correctly. Kindly give solutions for both problems, sticky header and custom header for arabic pages. Thank you, waiting for your response.
    Here are the links for both menus: https://mobelmedia.com/umnasserfinland/about-us/#

    https://mobelmedia.com/umnasserfinland/ar-admissions/
     
    #5 Zubaida, Jun 14, 2025
    Last edited: Jun 14, 2025
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    For the sticky header, it can't set just for the menu to be sticky. That's because your header is set to be position absolute with transform CSS. Anything inside the transform CSS can't be set as sticky.
     
  7. Zubaida

    Zubaida New Member

    Okay, but kindly suggest the solution for arabic pages menu.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade logo carousel design for your Divi site without using any plugins:View Demo
  8. Zubaida

    Zubaida New Member

    This is the current situation of custom header for arabic pages. Like pages header has RTL formation as well and the margin right is 50px for mobile to align the hamburger in top left corner. IMG_5526.png
     
  9. Divi.Help

    Divi.Help Administrator
    Staff Member

    You may try to go to the menu module settings > Advanced > Custom CSS > Free-Form CSS & add:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More