{"id":45783,"date":"2015-04-06T00:20:04","date_gmt":"2015-04-06T04:20:04","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45783"},"modified":"2016-04-12T09:57:04","modified_gmt":"2016-04-12T13:57:04","slug":"wordpess-how-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpess-how-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout.html","title":{"rendered":"WordPess. How to hide menu items in mobile menu but keep them on desktop layout"},"content":{"rendered":"<p><br \/>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=LsknCo0npCc?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPess. How to hide menu items in mobile menu but keep them on desktop layout<\/a><\/p>\r\n<p>This tutorial shows how to hide menu items in mobile menu but keep them on desktop layout in WordPress.\r\n<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1-300x151.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-1\" width=\"300\" height=\"151\" class=\"aligncenter size-medium wp-image-45784\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1-300x151.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1-1024x518.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-1.jpg 1253w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>We have enabled emulation of mobile devices in built-in inspector of Chrome browser. Press F12 in order to open the inspector. Inspect mobile menu. Expand section with menu:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2-300x156.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-2\" width=\"300\" height=\"156\" class=\"aligncenter size-medium wp-image-45785\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2-300x156.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2-1024x534.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-2.jpg 1267w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>You can see the list of menus. Let&#8217;s  hide About us menu item in mobile menu using CSS only. About us menu appears third in the list. Basically, you should specify this number in CSS selector:  <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3-300x160.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-3\" width=\"300\" height=\"160\" class=\"aligncenter size-medium wp-image-45786\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3-300x160.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3-150x80.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3-1024x546.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-3.jpg 1243w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Go to <strong>Appearance -> Editor<\/strong>. Add the following CSS code and save changes:<\/p>\r\n<pre class=\"brush:css\">\r\n.select-menu option:nth-child(3) {\r\n\tdisplay: none !important;\r\n\tvisibility: hidden !important;\r\n}<\/pre>\r\n<p>In this code 3 is a number of element in the list. You should replace it with appropriate number. In order to hide several menus, you should add the same code and change number in <strong>option:nth-child(3)<\/strong> section:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4-300x157.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-4\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-45787\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4-1024x536.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-4.jpg 1237w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Clear browser cache, cookies and check your site. You can see that About us menu item is hidden. Screenshot shows te code that hides about us menu:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5-300x157.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-5\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-45788\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5-1024x536.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-5.jpg 1234w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>You can see that menu About us still appears on Desktop layout:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6-300x141.jpg\" alt=\"Wordress. How to hide menu items in mobile menu but keep them on desktop layout-6\" width=\"300\" height=\"141\" class=\"aligncenter size-medium wp-image-45789\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6-300x141.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6-150x70.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6-1024x482.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Wordress.-How-to-hide-menu-items-in-mobile-menu-but-keep-them-on-desktop-layout-6.jpg 1224w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=LsknCo0npCc?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPess. How to hide menu items in mobile menu but keep them on desktop layout<\/a><br \/>\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to hide menu items in mobile menu but keep them on desktop layout in Wordpress.<\/p>\n","protected":false},"author":39,"featured_media":45800,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1912,571,981,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45783"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45783"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45783\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45800"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}