{"id":397024,"date":"2023-10-04T11:43:55","date_gmt":"2023-10-04T10:43:55","guid":{"rendered":"https:\/\/www.megamenu.com\/?post_type=ht_kb&#038;p=397024"},"modified":"2024-04-10T13:25:03","modified_gmt":"2024-04-10T12:25:03","slug":"block","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/block\/","title":{"rendered":"Block"},"content":{"rendered":"\n<p>Max Mega Menu comes with a built in block. This allows easy insertion of menus into your block editor\/Gutenberg\/full site editing layouts. An example of this can be seen on our <a href=\"https:\/\/www.megamenu.com\/documentation\/vertical-mega-menu\/\" data-type=\"ht_kb\" data-id=\"355782\">Vertical Menu<\/a> demo page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Registering a new menu location<\/h3>\n\n\n\n<p>First we&#8217;ll need to create a new menu location specifically for use with the block.<\/p>\n\n\n\n<p>Under<em>&nbsp;Mega Menu &gt; Menu Locations<\/em>, create a new menu location:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location.png\"><img loading=\"lazy\" decoding=\"async\" width=\"2430\" height=\"1546\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location.png\" alt=\"\" class=\"wp-image-266892\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location.png 2430w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-300x191.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-1024x651.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-768x489.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-50x32.png 50w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-1536x977.png 1536w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_new_menu_location-2048x1303.png 2048w\" sizes=\"auto, (max-width: 2430px) 100vw, 2430px\" \/><\/a><figcaption class=\"wp-element-caption\">Creating a new menu location<\/figcaption><\/figure>\n\n\n\n<p>On the next page, provide a name for the new location and click &#8216;Add menu location&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm.png\"><img loading=\"lazy\" decoding=\"async\" width=\"2430\" height=\"1694\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm.png\" alt=\"\" class=\"wp-image-266896\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm.png 2430w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-300x209.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-1024x714.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-768x535.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-50x35.png 50w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-1536x1071.png 1536w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2016\/05\/create_location_mmm-2048x1428.png 2048w\" sizes=\"auto, (max-width: 2430px) 100vw, 2430px\" \/><\/a><figcaption class=\"wp-element-caption\">Assigning a name and menu to the new location<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Creating the menu<\/h3>\n\n\n\n<p>Use the <em>Appearance &gt; Menus<\/em> page to create edit your menu. All menu editing from this point on is done using this page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Display the menu in a post or page<\/h3>\n\n\n\n<p>Use the Max Mega Menu block to display the menu location created in Step 1:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"405\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-1024x405.png\" alt=\"\" class=\"wp-image-397027\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-1024x405.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-300x119.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-768x304.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-50x20.png 50w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-1536x607.png 1536w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2023\/10\/mmm-block-edit-2048x810.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Max Mega Menu block (Edit mode)<\/figcaption><\/figure>\n\n\n\n<p>Like any other Max Mega Menu enabled menu, you are free to restyle the menu using the Theme Editor and use all of the usual mega menu options to customize the menu.<\/p>\n\n\n\n<p>You can repeat&nbsp;the&nbsp;same steps to create&nbsp;and display multiple Mega Menus on your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Max Mega Menu comes with a built in block. This allows easy insertion of menus into your block editor\/Gutenberg\/full site editing layouts. An example of this can be seen on our Vertical Menu demo page. Step 1: Registering a new menu location First we&#8217;ll need to create a new menu&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[17],"ht-kb-tag":[],"class_list":["post-397024","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-menu-output-options"],"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":"Max Mega Menu comes with a built in block. This allows easy insertion of menus into your block editor\/Gutenberg\/full site editing layouts. An example of this can be seen on our Vertical Menu demo page. Step 1: Registering a new menu location First we&#8217;ll need to create a new menu...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/397024","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=397024"}],"version-history":[{"count":9,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/397024\/revisions"}],"predecessor-version":[{"id":407115,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/397024\/revisions\/407115"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=397024"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=397024"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=397024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}