Pricing Process Reviews Contact

Divi Guy blog

Hide or show WordPress menu items on mobile devices

In Appearance/Menus click on the Screen Options tab at the very top right. In the “Show advanced menu properties” area, check the box next to CSS Classes. Use the either “hide-mobile” or “show-mobile” in the menu class field. NOTE: The max-width is the default Divi tablet break point width. You can change this to your specific needs. Add the following CSS code to the Divi theme options area or your child theme style.css file.

/* show hide on mobile */
@media only screen and (max-width: 980px){  
    .hide-mobile {display: none!important;}
}
@media screen and (min-width: 979px) {
     .show-mobile {display: none!important;}
}

Need a hand?

Need help with your Divi website?

Book a Divi consultation and we can fix it together over Zoom, or ask for an estimate for bigger jobs.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Search

Browse

More tips

Got a question?

Ask me anything

Stuck on something in Divi or WordPress? Ask away and I will reply by email, usually within 24 hours.

Ask a Question

Tell me about your project. The more details the better.

"*" indicates required fields

Make a payment

Got an invoice?

Pay an invoice, a deposit or a tip in about a minute. Card or PayPal, secure checkout, and I never see your card number.

Make a payment