{"id":45528,"date":"2015-04-03T02:40:51","date_gmt":"2015-04-03T06:40:51","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45528"},"modified":"2015-07-27T07:29:24","modified_gmt":"2015-07-27T11:29:24","slug":"how-to-manage-submenu-css-styles-for-specific-menu-item-using-custom-css-classes","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-manage-submenu-css-styles-for-specific-menu-item-using-custom-css-classes.html","title":{"rendered":"How to manage submenu CSS styles for specific menu item using custom CSS classes"},"content":{"rendered":"<a href=\"http:\/\/www.youtube.com\/watch?v=VHcjYwOYd2g?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to manage submenu CSS styles for special menu using custom CSS classes<\/a>\r\n\r\n<p>Our Support team is ready to present a new tutorial that shows how to manage submenu CSS styles for specific menu item using custom CSS classes:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_1-300x113.png\" alt=\"how_to_manage_submenu_css_styles_1\" width=\"300\" height=\"113\" class=\"aligncenter size-medium wp-image-45529\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_1-300x113.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_1-150x56.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_1.png 845w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  \r\n <ol>\r\n\t <li><p>If you want to apply different settings for your sub-menus with the same CSS class, you will need to add a special selector.<\/p><\/li>\r\n\t <li><p>Click your menus section, then inspect element and find the sub-menu div with css class.<\/p><\/li>\r\n\t <li><p>Duplicate sub menus css class and add selector <strong>:nth-child()<\/strong> which makes your sub menu unique:<\/p><\/li>\r\n\t <li><p>In this case,  we need to increase the background width for About us sub menu section. We should create a new CSS class (including main sub menu class used in template) and  add selector <strong>:nth-child(2)<\/strong> , where <strong>&#8220;2&#8221;<\/strong> is a number of the page.\r\n     Now we can add css rules to our new class used for about us sub menu section:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_2-300x186.png\" alt=\"how_to_manage_submenu_css_styles_2\" width=\"300\" height=\"186\" class=\"aligncenter size-medium wp-image-45530\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_2-300x186.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_2-150x93.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_2.png 995w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t <li><p>Check the result on your site:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_3-300x107.png\" alt=\"how_to_manage_submenu_css_styles_3\" width=\"300\" height=\"107\" class=\"aligncenter size-medium wp-image-45531\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_3-300x107.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_3-150x53.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how_to_manage_submenu_css_styles_3.png 719w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t <li><p>Don&#8217;t forget to save your new css class in main stylesheet file on your website.<\/p><\/li>\r\n\t <li><p>Now you know how to manage submenu CSS styles for specific menu using custom CSS classes.<\/p><\/li>\r\n\t<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=VHcjYwOYd2g?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to manage submenu CSS styles for special menu using custom CSS classes<\/a>","protected":false},"excerpt":{"rendered":"<p>Our Support team is ready to present a new tutorial that shows how to manage submenu CSS styles for special menu using custom CSS classes<\/p>\n","protected":false},"author":56,"featured_media":45537,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[256],"tags":[651,514,517,1840],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45528"}],"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\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45528"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45528\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45537"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}