{"id":97249,"date":"2016-11-27T16:46:40","date_gmt":"2016-11-27T16:46:40","guid":{"rendered":"https:\/\/www.megamenu.com\/?post_type=ht_kb&#038;p=97249"},"modified":"2016-11-27T16:49:17","modified_gmt":"2016-11-27T16:49:17","slug":"applying-third-level-menu-item-styling-to-second-level-menu-items","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/applying-third-level-menu-item-styling-to-second-level-menu-items\/","title":{"rendered":"Applying third level menu item styling to second level menu items"},"content":{"rendered":"<p>Important: This functionality requires Max Mega Menu v2.3.1+<\/p>\n<p>Generally, second level items are styled to display as a column header\/title, and third level items are displayed as normal list items. This styling is set using the Theme Editor under Mega Menu &gt; Menu Themes.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-97250\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items.png\" alt=\"second-level-items\" width=\"1171\" height=\"119\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items.png 1171w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items-300x30.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items-768x78.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items-1024x104.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-items-50x5.png 50w\" sizes=\"auto, (max-width: 1171px) 100vw, 1171px\" \/><\/a><\/p>\n<p>In some instances, you may\u00a0<em>only<\/em>\u00a0want to display second level items in the submenu, in which case it would be preferable <em>not<\/em> to display second level menu items as if they are headers. Instead, you may prefer to display these second level items using the third level menu item styling.<\/p>\n<p>It is possible to do this by adding a custom class to the parent menu item.<\/p>\n<p>To add a custom class, go to Appearance &gt; Menus. At the top right of the page click &#8216;Screen Options&#8217; and ensure the CSS Classes checkbox is ticked. Then expand the parent menu item and add a &#8216;no-headers&#8217; CSS Class to the item:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/no-headers-css-class.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-97251\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/no-headers-css-class.png\" alt=\"no-headers-css-class\" width=\"512\" height=\"530\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/no-headers-css-class.png 512w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/no-headers-css-class-290x300.png 290w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/no-headers-css-class-48x50.png 48w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>Once the &#8216;no-headers&#8217; class has been added to the parent item, all items within the sub menu will be displayed as third level items:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-97252\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third.png\" alt=\"second-level-menu-items-as-third\" width=\"1173\" height=\"117\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third.png 1173w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third-300x30.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third-768x77.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third-1024x102.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/11\/second-level-menu-items-as-third-50x5.png 50w\" sizes=\"auto, (max-width: 1173px) 100vw, 1173px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important: This functionality requires Max Mega Menu v2.3.1+ Generally, second level items are styled to display as a column header\/title, and third level items are displayed as normal list items. This styling is set using the Theme Editor under Mega Menu &gt; Menu Themes. In some instances, you may\u00a0only\u00a0want to&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[14],"ht-kb-tag":[],"class_list":["post-97249","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faqs"],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Tom Hemsley","author_link":"https:\/\/www.megamenu.com\/author\/megamenu\/"},"uagb_comment_info":0,"uagb_excerpt":"Important: This functionality requires Max Mega Menu v2.3.1+ Generally, second level items are styled to display as a column header\/title, and third level items are displayed as normal list items. This styling is set using the Theme Editor under Mega Menu &gt; Menu Themes. In some instances, you may\u00a0only\u00a0want to...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/97249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/comments?post=97249"}],"version-history":[{"count":4,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/97249\/revisions"}],"predecessor-version":[{"id":97257,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/97249\/revisions\/97257"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=97249"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=97249"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=97249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}