{"id":2386,"date":"2021-06-21T11:33:09","date_gmt":"2021-06-21T08:33:09","guid":{"rendered":"https:\/\/elementor.com\/academy\/?p=2386"},"modified":"2023-04-24T12:55:36","modified_gmt":"2023-04-24T12:55:36","slug":"create-a-button-to-trigger-an-onclick-popup-in-wordpress","status":"publish","type":"post","link":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/","title":{"rendered":"Create a Button to Trigger an Onclick Popup [PRO]"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2386\" class=\"elementor elementor-2386\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-169d8c79 thesinglevideo elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"169d8c79\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2d7fe14d\" data-id=\"2d7fe14d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-567f39c7 elementor-widget elementor-widget-video\" data-id=\"567f39c7\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/-29XXbJLnQM&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-558a8a32 thesinglevideoOver elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"558a8a32\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-85ba5b1\" data-id=\"85ba5b1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-373a54ee elementor-tabs-view-horizontal elementor-widget elementor-widget-tabs\" data-id=\"373a54ee\" data-element_type=\"widget\" data-widget_type=\"tabs.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-tabs\">\n\t\t\t<div class=\"elementor-tabs-wrapper\" role=\"tablist\" >\n\t\t\t\t\t\t\t\t\t<div id=\"elementor-tab-title-9261\" class=\"elementor-tab-title elementor-tab-desktop-title\" aria-selected=\"true\" data-tab=\"1\" role=\"tab\" tabindex=\"0\" aria-controls=\"elementor-tab-content-9261\" aria-expanded=\"false\">Overview<\/div>\n\t\t\t\t\t\t\t\t\t<div id=\"elementor-tab-title-9262\" class=\"elementor-tab-title elementor-tab-desktop-title\" aria-selected=\"false\" data-tab=\"2\" role=\"tab\" tabindex=\"-1\" aria-controls=\"elementor-tab-content-9262\" aria-expanded=\"false\">Transcript<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"elementor-tabs-content-wrapper\" role=\"tablist\" aria-orientation=\"vertical\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-tab-title elementor-tab-mobile-title\" aria-selected=\"true\" data-tab=\"1\" role=\"tab\" tabindex=\"0\" aria-controls=\"elementor-tab-content-9261\" aria-expanded=\"false\">Overview<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-9261\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"1\" role=\"tabpanel\" aria-labelledby=\"elementor-tab-title-9261\" tabindex=\"0\" hidden=\"false\">In this &#8216;onclick popup&#8217; tutorial, we will show you how to add a form to a popup, trigger it with the click of a button, and close upon clicking the &#8220;Submit&#8221; button of the form, all using Elementor&#8217;s Popup Builder.<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-tab-title elementor-tab-mobile-title\" aria-selected=\"false\" data-tab=\"2\" role=\"tab\" tabindex=\"-1\" aria-controls=\"elementor-tab-content-9262\" aria-expanded=\"false\">Transcript<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-9262\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"2\" role=\"tabpanel\" aria-labelledby=\"elementor-tab-title-9262\" tabindex=\"0\" hidden=\"hidden\"><p>Hey Guys, Cassey here today we&#8217;ll create a page with a button that triggers a<br \/>pop-up with a form and a pop-up that closes once you fill out the form and click Submit.\u00a0<\/p><p>Sound complicated? With Elementor pop-ups it&#8217;s easy peasy. Let&#8217;s check it out.<\/p><p>So first off let&#8217;s load a page from our library. I&#8217;ll use this one you can see it already has a button so we can use it to trigger our pop-up.<\/p><p>For now let&#8217;s just publish our page and we&#8217;ll come back to it later after we create our pop-up.<\/p><p>So moving on to creating our pop-up go to templates and under pop-ups click add new pop-up. Let&#8217;s use a premade template. Hmm&#8230;how about this one now I know it&#8217;s design doesn&#8217;t fit our page but a quick tip here when uploading a page template as we did it uploads all the\u00a0 mages into our WordPress media library so we can now easily choose an image for a pop-up.<\/p><p>Let&#8217;s do it. Click the column\u00a0 handle here to enter its setting go to style and let&#8217;s change the column background image here. Change the text in the heading widget remove the\u00a0 message field in the form widget. Change the buttons color and now I think we&#8217;re all good.<\/p><p>Next we want the button to\u00a0 close the pop-up so under actions after submit choose pop-up and open the pop-up tab here and under action choose close pop-up. You can also switch to don&#8217;t show again once someone submits the form but let&#8217;s leave that out for now. Publish the pop-up and set the conditions and<br \/>triggers, meaning where and when the pop-up will be displayed in this example<br \/>we want a button to trigger our pop-up so we don&#8217;t need any conditions, triggers or advanced rules. So click Save and close.\u00a0<\/p><p>Quick recap we&#8217;ve set up a pop-up with a form that when hitting the submit button sends a form and closes it.<\/p><p>Cool, now back to our page. Let&#8217;s click on the button here to edit its settings. Now click on dynamic next to the link and under actions click pop-up then click on the wrench icon and under action choose: Open pop-up under the pop-up field search for your pop-up and click it now when a user clicks on the button they&#8217;ll see our pop-up update the page. And let&#8217;s test it out.<\/p><p>Go to our page, click the button and there you go! There&#8217;s our pop-up fill in the details and click the send button and voila our pop-up closes.<\/p><p>Well that&#8217;s all for now folks make sure you subscribe to our YouTube channel for<br \/>more videos and pop-ups catch you later.<\/p><\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Overview Transcript Overview In this \u2018onclick popup\u2019 tutorial, we will show you how to add a form to a popup, trigger it with the click of a button, and close upon clicking the \u201cSubmit\u201d button of the form, all using Elementor\u2019s Popup Builder. Transcript Hey Guys, Cassey here today we\u2019ll create a page with a [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":9715,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"elementor_theme","format":"standard","meta":{"footnotes":""},"categories":[4,14],"tags":[41],"class_list":["post-2386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-design-layout","category-pop-up","tag-guides-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create a Button to Trigger an Onclick Popup [PRO] - Academy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Button to Trigger an Onclick Popup [PRO] - Academy\" \/>\n<meta property=\"og:description\" content=\"Overview Transcript Overview In this \u2018onclick popup\u2019 tutorial, we will show you how to add a form to a popup, trigger it with the click of a button, and close upon clicking the \u201cSubmit\u201d button of the form, all using Elementor\u2019s Popup Builder. Transcript Hey Guys, Cassey here today we\u2019ll create a page with a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Academy\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-21T08:33:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-24T12:55:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hodaya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hodaya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a Button to Trigger an Onclick Popup [PRO] - Academy","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:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Create a Button to Trigger an Onclick Popup [PRO] - Academy","og_description":"Overview Transcript Overview In this \u2018onclick popup\u2019 tutorial, we will show you how to add a form to a popup, trigger it with the click of a button, and close upon clicking the \u201cSubmit\u201d button of the form, all using Elementor\u2019s Popup Builder. Transcript Hey Guys, Cassey here today we\u2019ll create a page with a [&hellip;]","og_url":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/","og_site_name":"Academy","article_published_time":"2021-06-21T08:33:09+00:00","article_modified_time":"2023-04-24T12:55:36+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg","type":"image\/jpeg"}],"author":"Hodaya","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Hodaya","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/"},"author":{"name":"Hodaya","@id":"https:\/\/elementor.com\/academy\/#\/schema\/person\/ff9f2661f3df53ae5842a9ad15853d1c"},"headline":"Create a Button to Trigger an Onclick Popup [PRO]","datePublished":"2021-06-21T08:33:09+00:00","dateModified":"2023-04-24T12:55:36+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/"},"wordCount":537,"publisher":{"@id":"https:\/\/elementor.com\/academy\/#organization"},"image":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg","keywords":["Guides and Tutorials"],"articleSection":["Design \/ Layout","Pop Up"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/","url":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/","name":"Create a Button to Trigger an Onclick Popup [PRO] - Academy","isPartOf":{"@id":"https:\/\/elementor.com\/academy\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg","datePublished":"2021-06-21T08:33:09+00:00","dateModified":"2023-04-24T12:55:36+00:00","breadcrumb":{"@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#primaryimage","url":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg","contentUrl":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/06\/Create-a-Button-to-Trigger-an-Onclick-Popup.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/academy\/create-a-button-to-trigger-an-onclick-popup-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Elementor","item":"https:\/\/elementor.com\/"},{"@type":"ListItem","position":2,"name":"Academy","item":"https:\/\/elementor.com\/academy\/"},{"@type":"ListItem","position":3,"name":"Design \/ Layout","item":"https:\/\/elementor.com\/academy\/design-layout\/"},{"@type":"ListItem","position":4,"name":"Create a Button to Trigger an Onclick Popup [PRO]"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/academy\/#website","url":"https:\/\/elementor.com\/academy\/","name":"Elementor Academy","description":"Page Builder for WordPress","publisher":{"@id":"https:\/\/elementor.com\/academy\/#organization"},"alternateName":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/02\/Elementor-Logo.png","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/academy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/academy\/#organization","name":"Elementor Academy","alternateName":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2021\/02\/Elementor-Logo.png","url":"https:\/\/elementor.com\/academy\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/academy\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2022\/11\/e-logo.svg","contentUrl":"https:\/\/elementor.com\/academy\/wp-content\/uploads\/2022\/11\/e-logo.svg","width":490,"height":85,"caption":"Elementor Academy"},"image":{"@id":"https:\/\/elementor.com\/academy\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/elementor.com\/academy\/#\/schema\/person\/ff9f2661f3df53ae5842a9ad15853d1c","name":"Hodaya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/324f2d5cff44331b747d766f10e31793b1e29ad4f98f129d409760191f88ccc5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/324f2d5cff44331b747d766f10e31793b1e29ad4f98f129d409760191f88ccc5?s=96&d=mm&r=g","caption":"Hodaya"},"url":"https:\/\/elementor.com\/academy\/author\/hodaya\/"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/posts\/2386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/comments?post=2386"}],"version-history":[{"count":2,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/posts\/2386\/revisions"}],"predecessor-version":[{"id":9631,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/posts\/2386\/revisions\/9631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/media\/9715"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/media?parent=2386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/categories?post=2386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/academy\/wp-json\/wp\/v2\/tags?post=2386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}