{"id":111157,"date":"2017-04-19T10:55:47","date_gmt":"2017-04-19T09:55:47","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/custom-theme-integration-copy-2\/"},"modified":"2018-01-22T11:41:43","modified_gmt":"2018-01-22T11:41:43","slug":"change-width-individual-sub-menu","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/change-width-individual-sub-menu\/","title":{"rendered":"How to change the width of an individual sub menu"},"content":{"rendered":"<p>Under <em>Mega Menu &gt; Menu Themes<\/em>, you can define a <a href=\"https:\/\/www.megamenu.com\/documentation\/adjust-sub-menu-width\/\"><strong>global<\/strong> width<\/a> for all of your sub menus.<\/p>\n<p>It is also possible to change the width of an individual sub menu using <a href=\"https:\/\/www.megamenu.com\/documentation\/item-styling\/\">Custom Item Styling<\/a>.<\/p>\n<h3>Example<\/h3>\n<p>In this example we will change the width of the &#8220;Contact&#8221; Sub menu.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-submenu.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-111162 size-full\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-submenu.gif\" alt=\"\" width=\"1187\" height=\"844\" \/><\/a><\/p>\n<h3>Step 1<\/h3>\n<p>Log in to WordPress then go to <em>Appearance &gt; Menus.<\/em> Hover over the <strong>parent<\/strong> item of your sub menu. In our case it is the &#8220;Contact&#8221; menu item. Then click the blue Mega Menu button.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-111163 size-full\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button.png\" alt=\"\" width=\"2378\" height=\"1736\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button.png 2378w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button-300x219.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button-768x561.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button-1024x748.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/contact-blue-button-50x37.png 50w\" sizes=\"auto, (max-width: 2378px) 100vw, 2378px\" \/><\/a><\/p>\n<h3>Step 2<\/h3>\n<p>Go to the &#8220;Styling&#8221; tab and scroll down to the &#8220;Sub Menu &#8211; Width&#8221; option. Set the value to your desired sub menu width then scroll down and click &#8220;Save changes&#8221;.<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-111165 size-full\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width.png\" alt=\"\" width=\"2378\" height=\"1736\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width.png 2378w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width-300x219.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width-768x561.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width-1024x748.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-width-50x37.png 50w\" sizes=\"auto, (max-width: 2378px) 100vw, 2378px\" \/><\/a><\/p>\n<h3>End Result<\/h3>\n<p>The sub menu for the Contact menu item is now 300px wide:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-small.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-111166 size-full\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2017\/04\/submenu-small.gif\" alt=\"\" width=\"1189\" height=\"869\" \/><\/a><\/p>\n<p>You can also use the &#8220;Sub Menu &#8211; Horizontal Offset&#8221; custom styling option to pull\/pull the sub menu to the left or right.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Under Mega Menu &gt; Menu Themes, you can define a global width for all of your sub menus. It is also possible to change the width of an individual sub menu using Custom Item Styling. Example In this example we will change the width of the &#8220;Contact&#8221; Sub menu. Step&#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-111157","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":"Under Mega Menu &gt; Menu Themes, you can define a global width for all of your sub menus. It is also possible to change the width of an individual sub menu using Custom Item Styling. Example In this example we will change the width of the &#8220;Contact&#8221; Sub menu. Step...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/111157","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=111157"}],"version-history":[{"count":5,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/111157\/revisions"}],"predecessor-version":[{"id":140148,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/111157\/revisions\/140148"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=111157"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=111157"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=111157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}