{"id":1244,"date":"2023-10-26T13:21:13","date_gmt":"2023-10-26T13:21:13","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=1244"},"modified":"2023-10-26T13:21:14","modified_gmt":"2023-10-26T13:21:14","slug":"poptin","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/poptin\/","title":{"rendered":"Poptin Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Poptin Shortcode<\/strong> to your WordPress website, including its <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the Poptin Plugin shortcode not to show or not to work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, here is an overview of the Poptin Plugin and the shortcodes it provides:<\/p>\n\n\n<p>    <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/poptin\/assets\/icon-128x128.gif?rev=2230390\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/poptin\" target=\"_blank\" rel=\"noopener\">\n                        Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder \u2013 Poptin                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Poptin is a robust WordPress plugin that allows you to create engaging pop-ups, exit intent popups, email pop-ups, lightbox pop-ups, spin the wheel games, and contact forms to enhance user engagement.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2605\u2605\u2606<\/span> (474)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 20000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.3.2            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: false            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[poptin-form]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Poptin [poptin-form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Poptin-form shortcode is a tool for embedding a Poptin form on your WordPress page. By inputting a specific ID, the shortcode pulls the associated form from Poptin&#8217;s database. \n\n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[poptin-form]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a list of all possible poptin-form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>poptin_div_id<\/code> &#8211; Defines the unique ID for the specific poptin form<\/li>\n<\/ul>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic example<\/strong> &#8211; A simple usage of the Poptin form shortcode to display a form by its unique ID.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[poptin-form id=\"123\"]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Displaying a Poptin form by referencing its unique ID, and adding custom CSS classes for further customization.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[poptin-form id=\"123\" class=\"custom-class another-custom-class\"]<\/code><\/pre>\n\n\n<p>Using the shortcode to display a Poptin form by referencing its unique ID, and adding inline CSS styles for specific styling.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[poptin-form id=\"123\" style=\"width: 100%; height: auto;\"]<\/code><\/pre>\n\n\n<p>Note: In the above examples, replace &#8220;123&#8221; with the actual ID of your Poptin form. The custom classes and inline styles are optional and can be adjusted to your specific needs.<\/p>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[poptin-form]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode('poptin-form', 'poptin_shortcode_form');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction poptin_shortcode_form($arguments)\n{\n    if(isset($arguments&#91;0]) &amp;&amp; !empty($arguments&#91;0])) {\n        $poptin_div_id = $arguments&#91;0];\n        return &quot;&lt;div class=&#039;poptin-embedded&#039; data-id=&#039;&quot; . esc_attr($poptin_div_id) . &quot;&#039;&gt;&lt;\/div&gt;&quot;;\n    }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">poptin\/poptin\/poptin.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>Poptin Plugin shortcode<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the Poptin Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Poptin Plugin shortcode not to show or not to work correctly. Before starting, here is an overview of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Pop ups, WordPress Exit Intent Popup, Email Pop Up, Lightbox Pop Up, Spin the Wheel, Contact Form Builder \u2013 Poptin","slug":"","version":"1.3.1","author":"<a href=\"https:\/\/www.poptin.com\">Poptin<\/a>","icons":"https:\/\/ps.w.org\/poptin\/assets\/icon-128x128.gif?rev=2230390","plugin_tags":"{\"exit-popup\":\"exit popup\",\"exit-intent\":\"exit-intent\",\"pop-up\":\"pop up\",\"pop-ups\":\"pop-ups\",\"popups\":\"popups\"}","author_profile":"https:\/\/profiles.wordpress.org\/galdub\/","requires":"3.1","tested":"6.3.2","requires_php":"false","rating":98,"num_ratings":474,"active_installs":20000,"downloaded":247369,"last_updated":"2023-10-10 7:54am GMT","added":"2017-08-20","homepage":"","short_description":"\ud83d\udd25 Pop ups &amp; contact forms builder. Get more sales &amp; subscribers with beautiful popups, forms, lightbox popup, notification bar &amp; more templates \ud83d\ude0d","description":"\"Poptin is a robust WordPress plugin that allows you to create engaging pop-ups, exit intent popups, email pop-ups, lightbox pop-ups, spin the wheel games, and contact forms to enhance user engagement.\"","shortcodes":"[\"poptin-form\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1244","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":1511,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1244\/revisions\/1511"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}