{"id":25055,"date":"2021-04-27T14:11:43","date_gmt":"2021-04-27T12:11:43","guid":{"rendered":"https:\/\/www.markhendriksen.com\/?p=25055"},"modified":"2021-04-28T12:52:39","modified_gmt":"2021-04-28T10:52:39","slug":"how-to-create-a-collapsing-mobile-menu-in-divi","status":"publish","type":"post","link":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/","title":{"rendered":"How To Create A Collapsing Mobile Menu in Divi"},"content":{"rendered":"\n<p>In this tutorial, we are going to build a collapsing mobile menu with nested menu items. If you have many menu items in your mobile menu, this can become a long list. With a collapsing mobile menu, we can make it a lot user-friendly.<\/p>\n\n\n\n<p>This is how the collapsing mobile menu will look. When you click on a arrow the menu will expand and the second-level menu items will be visible.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"325\" height=\"328\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu.jpg\" alt=\"Example collapsing mobile menu\" class=\"wp-image-25056\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu.jpg 325w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu-100x100.jpg 100w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu-297x300.jpg 297w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu-150x150.jpg 150w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu-59x60.jpg 59w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Example-collapsing-mobile-menu-89x90.jpg 89w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/figure><\/div>\n\n\n\n<p>You can see a live demo here.<\/p>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-ec91bddb\">\n\n<a class=\"gb-button gb-button-224bc483 gb-button-text demo-button-free-layouts\" href=\"https:\/\/divicommerce.markhendriksen.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">See Demo<\/a>\n\n<\/div>\n\n\n<h2 class=\"gb-headline gb-headline-a3a0287d gb-headline-text\">Step 1: Adding the jQuery code<\/h2>\n\n\n\n<p>Add the following jQuery code to you <a href=\"https:\/\/www.markhendriksen.com\/divi-child-theme-essential-guide\/\">child theme<\/a> or in Divi <strong>&gt; Theme Options &gt; Intergration &gt; Add code to the &lt; head &gt; of your blog <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script>\njQuery(function($) {\n    $(document).ready(function() {\n        $(\"body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu  li.page_item_has_children\").append('&lt;a href=\"#\" class=\"mobile-toggle-icon\">&lt;\/a>');\n        $('ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon, ul.et_mobile_menu li.page_item_has_children .mobile-toggle-icon').click(function(event) {\n            event.preventDefault();\n            $(this).parent('li').toggleClass('mobile-toggle-open');\n            $(this).parent('li').find('ul.children').first().toggleClass('visible');\n            $(this).parent('li').find('ul.sub-menu').first().toggleClass('visible');\n        });\n        iconFINAL = 'P';\n        $('body ul.et_mobile_menu li.menu-item-has-children, body ul.et_mobile_menu li.page_item_has_children').attr('data-icon', iconFINAL);\n        $('.mobile-toggle-icon').on('mouseover', function() {\n            $(this).parent().addClass('active-toggle');\n        }).on('mouseout', function() {\n            $(this).parent().removeClass('active-toggle');\n        })\n    });\n});\n&lt;\/script><\/code><\/pre>\n\n\n\n<h2 class=\"gb-headline gb-headline-ad70d19b gb-headline-text\">Step 2: Adding the CSS code<\/h2>\n\n\n\n<p>Go to <strong>Divi &gt; Theme Options &gt; CSS<\/strong> and add the following CSS code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* #### Collaping Mobile Menu #### *\/\n\nul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after,\n.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after {\n\tcolor: #da181f; \/* Icon color *\/\n\tbackground: #f1f1f1; \/* Icon background color *\/\n\ttop: 10px;\n\tposition: relative;\n\tfont-family: \"ETModules\";\n\tcontent: '\\33';\n\tborder-radius: 50%;\n\tpadding: 3px;\n}\n\nul.et_mobile_menu li.menu-item-has-children.mobile-toggle-open>.mobile-toggle-icon::after,\n.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.mobile-toggle-open>.mobile-toggle-icon::after {\n\tcontent: '\\32';\n}\n\n.et_mobile_menu .menu-item-has-children>a {\n    font-weight: 600 !important; \n}\n\nul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon,\nul.et_mobile_menu li.page_item_has_children .mobile-toggle-icon,\n.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon,\n.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle-icon {\n\twidth: 44px;\n\theight: 100%;\n\tpadding: 0px !important;\n\tmax-height: 44px;\n\tborder: none;\n\tposition: absolute;\n\tright: 0px;\n\ttop: 0px;\n\tz-index: 999;\n\tbackground-color: transparent;\n}\n\nul.et_mobile_menu>li.menu-item-has-children,\nul.et_mobile_menu>li.page_item_has_children,\nul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,\n.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,\n.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,\n.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {\n\tposition: relative;\n}\n\n.et_mobile_menu .menu-item-has-children>a,\n.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {\n\tbackground-color: transparent;\n}\n\nul.et_mobile_menu .menu-item-has-children .sub-menu,\n#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,\n.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,\n.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {\n\tdisplay: none !important;\n\tvisibility: hidden !important;\n}\n\nul.et_mobile_menu .menu-item-has-children .sub-menu.visible,\n#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,\n.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,\n.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {\n\tdisplay: block !important;\n\tvisibility: visible !important;\n}\n\nul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon,\n.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon {\n\ttext-align: center;\n\topacity: 1;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"gb-headline gb-headline-f071fd05 gb-headline-text\">How to change the colors<\/h2>\n\n\n\n<p>At the top of the CSS code you will see this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>color: #da181f; \/* Icon color *\/\nbackground: #f1f1f1; \/* Icon background color *\/<\/code><\/pre>\n\n\n\n<p>Here you can change the color codes for the background and icon.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">You might also like&#8230;<\/h3>\n\n\n\n<ul class=\"listsquare listsquare-single wp-block-list\"><li><a href=\"https:\/\/www.markhendriksen.com\/how-to-style-the-divi-mobile-menu\/\">How to style the Divi mobile menu<\/a><\/li><li><a href=\"https:\/\/www.markhendriksen.com\/how-to-change-the-divi-mobile-menu-breakpoint\/\">How to change the Divi mobile menu breakpoint<\/a><\/li><li><a href=\"https:\/\/www.markhendriksen.com\/how-to-add-the-text-menu-next-to-the-divi-hamburger-menu\/\">Adding text before and after the hamburger icon<\/a><\/li><li><a href=\"https:\/\/www.markhendriksen.com\/divi-mobile-plugin-from-divi-engine\/\">Divi mobile plugin from Divi Engine<\/a><\/li><li><a href=\"https:\/\/www.markhendriksen.com\/divi-mobile-menu-not-working-and-how-to-fix-it\/\">Divi mobile menu not working and how to fix it<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to build a collapsing mobile menu with nested menu items. If you have many menu items in your mobile menu, this can become a long list. With a collapsing mobile menu, we can make it a lot user-friendly. This is how the collapsing mobile menu will look. When you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":25068,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-25055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-divi-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com<\/title>\n<meta name=\"description\" content=\"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com\" \/>\n<meta property=\"og:description\" content=\"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\" \/>\n<meta property=\"og:site_name\" content=\"Mark Hendriksen\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/madebymarkhendriksen\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-27T12:11:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-28T10:52:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mark Hendriksen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Hendriksen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\"},\"author\":{\"name\":\"Mark Hendriksen\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\"},\"headline\":\"How To Create A Collapsing Mobile Menu in Divi\",\"datePublished\":\"2021-04-27T12:11:43+00:00\",\"dateModified\":\"2021-04-28T10:52:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\"},\"wordCount\":212,\"commentCount\":24,\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg\",\"articleSection\":[\"Divi tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\",\"url\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\",\"name\":\"How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg\",\"datePublished\":\"2021-04-27T12:11:43+00:00\",\"dateModified\":\"2021-04-28T10:52:39+00:00\",\"description\":\"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg\",\"width\":720,\"height\":400,\"caption\":\"How To Create A Collapsing Mobile Menu In Divi\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.markhendriksen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Divi tutorials\",\"item\":\"https:\/\/www.markhendriksen.com\/divi-tutorials\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Create A Collapsing Mobile Menu in Divi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.markhendriksen.com\/#website\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"name\":\"Mark Hendriksen\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.markhendriksen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\",\"name\":\"Mark Hendriksen\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"width\":354,\"height\":40,\"caption\":\"Mark Hendriksen\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/madebymarkhendriksen\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\",\"name\":\"Mark Hendriksen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"caption\":\"Mark Hendriksen\"},\"url\":\"https:\/\/www.markhendriksen.com\/author\/twopixels\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com","description":"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/","og_locale":"en_US","og_type":"article","og_title":"How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com","og_description":"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.","og_url":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/","og_site_name":"Mark Hendriksen","article_publisher":"https:\/\/www.facebook.com\/madebymarkhendriksen","article_published_time":"2021-04-27T12:11:43+00:00","article_modified_time":"2021-04-28T10:52:39+00:00","og_image":[{"width":720,"height":400,"url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg","type":"image\/jpeg"}],"author":"Mark Hendriksen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark Hendriksen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#article","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/"},"author":{"name":"Mark Hendriksen","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765"},"headline":"How To Create A Collapsing Mobile Menu in Divi","datePublished":"2021-04-27T12:11:43+00:00","dateModified":"2021-04-28T10:52:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/"},"wordCount":212,"commentCount":24,"publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg","articleSection":["Divi tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/","url":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/","name":"How To Create A Collapsing Mobile Menu in Divi | MarkHendriksen.com","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg","datePublished":"2021-04-27T12:11:43+00:00","dateModified":"2021-04-28T10:52:39+00:00","description":"Does your mobile menu have too many menu items? In this tutorial, we are going to build a collapsing mobile menu with nested menu items.","breadcrumb":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#primaryimage","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-collapsing-mobile-menu-in-Divi.jpg","width":720,"height":400,"caption":"How To Create A Collapsing Mobile Menu In Divi"},{"@type":"BreadcrumbList","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-collapsing-mobile-menu-in-divi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markhendriksen.com\/"},{"@type":"ListItem","position":2,"name":"Divi tutorials","item":"https:\/\/www.markhendriksen.com\/divi-tutorials\/"},{"@type":"ListItem","position":3,"name":"How To Create A Collapsing Mobile Menu in Divi"}]},{"@type":"WebSite","@id":"https:\/\/www.markhendriksen.com\/#website","url":"https:\/\/www.markhendriksen.com\/","name":"Mark Hendriksen","description":"","publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markhendriksen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.markhendriksen.com\/#organization","name":"Mark Hendriksen","url":"https:\/\/www.markhendriksen.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","width":354,"height":40,"caption":"Mark Hendriksen"},"image":{"@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/madebymarkhendriksen"]},{"@type":"Person","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765","name":"Mark Hendriksen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","caption":"Mark Hendriksen"},"url":"https:\/\/www.markhendriksen.com\/author\/twopixels\/"}]}},"_links":{"self":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/25055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/comments?post=25055"}],"version-history":[{"count":3,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/25055\/revisions"}],"predecessor-version":[{"id":28612,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/25055\/revisions\/28612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media\/25068"}],"wp:attachment":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media?parent=25055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/categories?post=25055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/tags?post=25055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}