These are beneficial for those using non-visual browsers (such as screen readers) or those who are unable to use a pointing device (and may be using a keyboard-like tabbing system, for example). Any help would be greatly appreciated. You’ll then need to prefix the following CSS with the page’s unique body class..main-navigation { display: none; } So for example, to hide your menu on your home page only, you’d say:.home .main-navigation { display: none; } All CSS to be placed under Appearance > Custom CSS. You can also use the ID attribute to hide the menu. Required fields are marked *. I was wondering, would it be possible to turn this around? Finally, add css to show hidden sub-menu items On-click and change “+” icon to “x”. In this example, I want to hide the main menu, but only on one specific page. These links will, however, prove additionally useful in our sho… Enter the below CSS. Use Chrome or Firefox Developer Tools to look for a unique CSS selector. Enter "desktop-menu-item" into this box. Viewing 15 posts - 1 through 15 (of 17 total) 1 2 → Author Posts fintan Friend fintanJoin date: October 2011Posts: 50Downloads:4Uploads:0 Thanks: 13 Thanked: 2 times in 1 posts February 18, 2014 at 10:35 am #194912 As the title say I would like to show respectivly hide ceratin menu items on mobile devices. Though it is a nice concept, it needs to be fine-tuned a little for a better experience. Save the menu. Good Morning. One of my biggest pet peeves in looking at code from other developers is how needlessly convoluted they make the simplest of tasks, and how much garbage they put in the markup to do something simple. Ive tried @media screen and (max-width: 990px) { .… This will add a CSS class to the menu item which we'll use next to hide the items on mobile. We’re going to start with a typical page structure: Note that we have the accessibility considerations of a “Skip to navigation” link and a “Skip to top” link. In my example, the selector that wraps the menu is #mainmenu. One of my biggest pet peeves in looking at code from other developers is how needlessly convoluted they make the simplest of tasks, and how much garbage they put in the markup to do something simple. For small screens, we hide the basic menu and show the label. Leo recommended to add the CSS: @media (max-width: 768px) {.main-navigation {display: none;}} This didn’t work. The menu I … Live! One very common feature is the expanding/collapsing or shown/hidden box, whether this is a tabbed interface, a content "tray" on the side that can be slid out and then put away again, or a comple… in one easy-to-use plugin. of the containing element of your original menu. However, usually this is not enough. CCS menu on mobile show/hide by CSS or JavaScript? So that you put some CSS in the menu items that you would like to show, and hide the others which do not have that CSS line? within this element, you will have a (class=”menuclass”). A toggle-menu is a menu that will be closed until you tap on the menu button. Sometimes you may want to have a different menu item on a specific device size and in this tutorial, we will learn how to manage that by showing and hiding the menu items based on the device screen size. That worked great ON DESKTOP VIEW, the generatepress menu disappeared. hey Anders, Do you have a CSS that works to hide the menu on mobile? How to Hide Images on a Website When It is Viewed on a Mobile Phone by Christopher Heng, thesitewizard.com. Method 2: Show and hide different content in Beaver Builder. Now, in the Primary menu you just selected from the dropdown, locate the item you wish to hide. I used your updated code and I tried changing the “mobile-menu” to custom menu as that was the css class added to the menu in builder but that didnt work. A mobile-friendly responsive navigation system that uses CSS3 media queries to detect the screen size and transforms the regular horizontal navigation into a show / hide menu with a toggle button on small screens. Step 1: Bam. If possible, find an id, although a class may work too. Hiding a menu item. You’ll then need to prefix the following CSS with the page’s unique body class..main-navigation { display: none; } So for example, to hide your menu on your home page only, you’d say:.home .main-navigation { display: none; } All CSS to be placed under Appearance > Custom CSS. This two fields are very important because they are responsible to hide the theme default menu when the WP Mobile Menu is triggered.