{"id":24666,"date":"2021-04-12T12:44:42","date_gmt":"2021-04-12T10:44:42","guid":{"rendered":"https:\/\/www.markhendriksen.com\/?p=24666"},"modified":"2023-02-28T06:20:49","modified_gmt":"2023-02-28T05:20:49","slug":"how-to-create-a-divi-modal-popup","status":"publish","type":"post","link":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/","title":{"rendered":"How To Create a Divi Modal Popup"},"content":{"rendered":"\n<p>In this tutorial, we are going to build a modal <a href=\"https:\/\/www.markhendriksen.com\/divi-popup\/\">Divi popup<\/a> without the need for any <a href=\"https:\/\/www.markhendriksen.com\/best-divi-plugins\/\">Divi plugin<\/a>. You can trigger this modal with any button or link.<\/p>\n\n\n\n<p>You can find a demo here:<\/p>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-b62804d2\">\n\n<a class=\"gb-button gb-button-2ecebe3b gb-button-text demo-button-free-layouts\" href=\"https:\/\/www.demo.markhendriksen.com\/divi-modal-popup\" target=\"_blank\" rel=\"noopener noreferrer\">See Demo<\/a>\n\n<\/div>\n\n\n<p>This modal is fully customizable with the visual builder.<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-37f22428 gb-headline-text\">Step 1: Download the modal layout pack<\/h2>\n\n\n\n<p>You can download the JSON files here:<\/p>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-4fc3b859\">\n\n<a class=\"gb-button gb-button-9ca142af gb-button-text demo-button-free-layouts\" href=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Divi-Modal.zip\">Download Modal file<\/a>\n\n<\/div>\n\n\n<p>After downloading extract the zip folder Divi Modal inside you will find the JSON file that you need to import in the next step.<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-4a5de937 gb-headline-text\">Step 2: Import the modal<\/h2>\n\n\n\n<p>Go to Divi &gt; Divi Library and click on Import &amp; Export<\/p>\n\n\n\n<p>Now import the file Divi Modal Popup.json.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"476\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Import-Divi-modal.jpg\" alt=\"Import Divi modal\" class=\"wp-image-24668\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Import-Divi-modal.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Import-Divi-modal-380x266.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Import-Divi-modal-300x210.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Import-Divi-modal-510x357.jpg 510w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p>After importing the json file go to Divi &gt; Theme Builder.<\/p>\n\n\n\n<p>Click on Add Global Footer &gt; Build Global Footer &gt; Build From Scratch.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"448\" height=\"376\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer.jpg\" alt=\"Click on add global footer\" class=\"wp-image-24669\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer.jpg 448w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer-380x319.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer-300x252.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer-71x60.jpg 71w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Click-on-add-global-footer-107x90.jpg 107w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Click on the 3 dots to expand the bottom bar. <\/li><li>Then click on Load From Library.<\/li><li>Switch to the Your Saved Layouts Tab<\/li><li>Choose Modal Slide-in<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"346\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder.jpg\" alt=\"Place Divi modal popup in theme builder\" class=\"wp-image-24670\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder-380x193.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder-300x153.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder-510x260.jpg 510w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder-118x60.jpg 118w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Place-Divi-modal-popup-in-theme-builder-177x90.jpg 177w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Important:<\/strong> If you already have content here for example a custom footer then make sure to uncheck Replace existing content. Otherwise, it will replace your current content. You will only see this option if you have content in the Global Footer.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"267\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/replace-existing-content.jpg\" alt=\"replace existing content\" class=\"wp-image-24672\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content-380x149.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content-300x118.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content-510x200.jpg 510w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content-153x60.jpg 153w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/replace-existing-content-229x90.jpg 229w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Note:<\/strong> If you have a footer with widgets then it will be gone when you enable the Global Footer and you will need to create a new footer here. <\/p>\n\n\n\n<p>After importing the modal you can click on save and leave this screen. When you are back in the <a href=\"https:\/\/www.markhendriksen.com\/divi-builder-plugin-review-by-elegant-themes\/\">Theme Builder<\/a> make sure to click on Save Changes.<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-a28e94bc gb-headline-text\">Trigger the Divi modal<\/h2>\n\n\n\n<p>You can trigger this modal from any page with a button or link. Open any page and place a button module.<\/p>\n\n\n\n<p>For the link field fill in #open.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"576\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger.jpg\" alt=\"Modal link trigger\" class=\"wp-image-24673\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger.jpg 394w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger-380x556.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger-205x300.jpg 205w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger-41x60.jpg 41w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-link-trigger-62x90.jpg 62w\" sizes=\"(max-width: 394px) 100vw, 394px\" \/><\/figure><\/div>\n\n\n\n<p>Then go to the advanced tab and fill in button_trigger as a class.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"398\" height=\"582\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Modal-button-trigger-class.jpg\" alt=\"Modal button trigger class\" class=\"wp-image-24674\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-button-trigger-class.jpg 398w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-button-trigger-class-380x556.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Modal-button-trigger-class-205x300.jpg 205w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"gb-headline gb-headline-646dcd42 gb-headline-text\">Disable modal in visual builder<\/h2>\n\n\n\n<p>When you are in the visual builder the modal is opened. You might want to disable this when working on the rest of your site. To do this follow these steps:<\/p>\n\n\n\n<p>Go to Divi &gt; Theme Builder &gt; Global Footer.<\/p>\n\n\n\n<p>Switch to wireframe view and open the CSS code module.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"425\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder.jpg\" alt=\"Disable Divi modal in visual builder\" class=\"wp-image-24675\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder-380x238.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder-300x188.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder-510x319.jpg 510w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder-96x60.jpg 96w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/Disable-Divi-modal-in-visual-builder-144x90.jpg 144w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p>This is the part of the code that enables the modal in the visual builder.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"164\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/CSS-modal.jpg\" alt=\"CSS modal\" class=\"wp-image-24677\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal-380x92.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal-300x72.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal-510x123.jpg 510w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal-190x46.jpg 190w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/CSS-modal-373x90.jpg 373w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p>To disable this you need to comment it out. Above the code, you will see this: \/**\/ copy *\/ and past it below the code.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"182\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal.jpg\" alt=\"comment out css for modal\" class=\"wp-image-24678\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal-380x102.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal-300x80.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal-510x137.jpg 510w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal-190x51.jpg 190w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/comment-out-css-for-modal-336x90.jpg 336w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/figure><\/div>\n\n\n\n<p>When you see the color turned out grey the code is now disabled.<\/p>\n\n\n\n<p>If you have any questions about this Divi modal please let me know in the comments below.<\/p>\n\n\n\n<h3 class=\"gb-headline gb-headline-1a78a4b5 gb-headline-text\">You Might Also Like\u2026<\/h3>\n\n\n\n<ul class=\"listsquare listsquare-single wp-block-list\"><li><a href=\"https:\/\/www.markhendriksen.com\/how-to-create-a-slide-in-with-divi\/\">How To Create a Slide-In With Divi<\/a><\/li><li><a href=\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-popup\/\">How to Create a Divi Popup<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to build a modal Divi popup without the need for any Divi plugin. You can trigger this modal with any button or link. You can find a demo here: This modal is fully customizable with the visual builder. Step 1: Download the modal layout pack You can download the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24680,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-24666","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 Divi Modal Popup | MarkHendriksen.com<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.\" \/>\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-divi-modal-popup\/\" \/>\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 Divi Modal Popup | MarkHendriksen.com\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\" \/>\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-12T10:44:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-28T05:20:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.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=\"4 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-divi-modal-popup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\"},\"author\":{\"name\":\"Mark Hendriksen\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\"},\"headline\":\"How To Create a Divi Modal Popup\",\"datePublished\":\"2021-04-12T10:44:42+00:00\",\"dateModified\":\"2023-02-28T05:20:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\"},\"wordCount\":450,\"commentCount\":13,\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg\",\"articleSection\":[\"Divi tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\",\"url\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\",\"name\":\"How To Create a Divi Modal Popup | MarkHendriksen.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg\",\"datePublished\":\"2021-04-12T10:44:42+00:00\",\"dateModified\":\"2023-02-28T05:20:49+00:00\",\"description\":\"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg\",\"width\":720,\"height\":400,\"caption\":\"How to create a Divi modal popup\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#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 Divi Modal Popup\"}]},{\"@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 Divi Modal Popup | MarkHendriksen.com","description":"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.","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-divi-modal-popup\/","og_locale":"en_US","og_type":"article","og_title":"How To Create a Divi Modal Popup | MarkHendriksen.com","og_description":"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.","og_url":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/","og_site_name":"Mark Hendriksen","article_publisher":"https:\/\/www.facebook.com\/madebymarkhendriksen","article_published_time":"2021-04-12T10:44:42+00:00","article_modified_time":"2023-02-28T05:20:49+00:00","og_image":[{"width":720,"height":400,"url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg","type":"image\/jpeg"}],"author":"Mark Hendriksen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark Hendriksen","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#article","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/"},"author":{"name":"Mark Hendriksen","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765"},"headline":"How To Create a Divi Modal Popup","datePublished":"2021-04-12T10:44:42+00:00","dateModified":"2023-02-28T05:20:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/"},"wordCount":450,"commentCount":13,"publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg","articleSection":["Divi tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/","url":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/","name":"How To Create a Divi Modal Popup | MarkHendriksen.com","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage"},"image":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg","datePublished":"2021-04-12T10:44:42+00:00","dateModified":"2023-02-28T05:20:49+00:00","description":"In this tutorial, we are going to build a modal popup for Divi without the need of any plugin. You can trigger this modal with any button.","breadcrumb":{"@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#primaryimage","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/04\/How-to-create-a-Divi-modal-popup.jpg","width":720,"height":400,"caption":"How to create a Divi modal popup"},{"@type":"BreadcrumbList","@id":"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-modal-popup\/#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 Divi Modal Popup"}]},{"@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\/24666","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=24666"}],"version-history":[{"count":3,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/24666\/revisions"}],"predecessor-version":[{"id":29382,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/24666\/revisions\/29382"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media\/24680"}],"wp:attachment":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media?parent=24666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/categories?post=24666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/tags?post=24666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}