{"id":1864,"date":"2023-12-10T10:57:51","date_gmt":"2023-12-10T10:57:51","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=1864"},"modified":"2023-12-10T10:57:51","modified_gmt":"2023-12-10T10:57:51","slug":"mailchimp-subscribe-sm","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/mailchimp-subscribe-sm\/","title":{"rendered":"Mailchimp Subscribe Sm Shortcodes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Mailchimp Subscribe Sm Shortcodes<\/strong> to your WordPress website, including their <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 Mailchimp Subscribe Sm Plugin shortcodes 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 Mailchimp Subscribe Sm 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\/mailchimp-subscribe-sm\/assets\/icon-128x128.png?rev=1810978\" 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\/mailchimp-subscribe-sm\" target=\"_blank\" rel=\"noopener\">\n                        MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder is a versatile plugin that allows seamless integration with MailChimp. It provides tools to create subscribe forms, engaging pop-ups, and customized forms.&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\u2729<\/span> (65)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 4000+\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>[pluginops_form]<\/li><li>[pluginops_popup_form]<\/li><li>[pluginops_flyin_form]<\/li><li>[pluginops_bar_form]<\/li><li>[pluginops_full_page_form]<\/li><li>[pb_samlple_nav]<\/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\">Mailchimp Subscribe Sm [pluginops_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8216;pluginops_form&#8217; shortcode from the Mailchimp-Subscribe-SM plugin is used to display a specific form template. \n\n\n\nThis shortcode calls the &#8216;smfb_template_shortcode&#8217; function, which extracts the &#8216;template_id&#8217; attribute from the shortcode. It then checks if the PluginOps Optin Builder is active and, if true, includes the specified form template. If the plugin is not active, it displays an error message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pluginops_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 pluginops_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>template_id<\/code> &#8211; Specifies the unique ID of the form template<\/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; The shortcode below is used to display a form template by referencing its ID. The template_id parameter is used to specify the ID of the desired form template.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_form template_id=1 \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Using the shortcode to display multiple form templates by referencing their IDs. In this case, the form templates with IDs 1, 2, and 3 will be displayed. This can be useful when you want to display multiple forms on a single page.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_form template_id=1 \/]\n[pluginops_form template_id=2 \/]\n[pluginops_form template_id=3 \/]<\/code><\/pre>\n\n\n<p>It&#8217;s important to note that the pluginops_form shortcode will only work if the PluginOps Optin Builder plugin is active. If the plugin is not active, the shortcode will display the message &#8220;PluginOps Optin Builder is not active&#8221;.<\/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>[pluginops_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( 'pluginops_form', array($this, 'smfb_template_shortcode') ) ;<\/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 smfb_template_shortcode($atts, $content){\n   ob_start();\n    \n\t  extract( shortcode_atts( array(\n\n\t\t\t&#039;template_id&#039; =&gt; &#039;&#039;,\n\t\t), $atts ) );\n\n\t$template_id = $template_id;\n\t$showFormOn  =  &#039;all&#039;;\n\t\n\t\n\t$isShortCodeTemplate = true;\n\n\tif (defined(&#039;SMFB_PLUGIN_PATH&#039;)) {\n\t\t\n\t\tif (! is_admin()) {\n\t\t\tinclude SMFB_PLUGIN_PATH.&#039;public\/templates\/template.php&#039;;\n\t\t}\n\n\t}else{\n\t\techo &quot;PluginOps Optin Builder is not active&quot;;\n\t}\n\t\n\n   return ob_get_clean();\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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\">Mailchimp Subscribe Sm [pluginops_popup_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8216;pluginops_popup_form&#8217; shortcode from the PluginOps Optin Builder plugin allows you to create and customize a popup form. \n\n\n\nThis shortcode uses parameters like &#8216;template_id&#8217;, &#8216;delay&#8217;, &#8216;onscroll&#8217;, &#8216;onexit&#8217;, and &#8216;onclick&#8217; to control the form&#8217;s behavior. For instance, you can set a delay before the form appears, or make it appear when the user scrolls or tries to exit the page. \n\nNote: If the PluginOps Optin Builder is not active, the shortcode will display an error message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pluginops_popup_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 pluginops_popup_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>template_id<\/code> &#8211; Specifies the unique ID of the template.<\/li>\n<li><code>delay<\/code> &#8211; Sets a delay before the form pops up.<\/li>\n<li><code>onscroll<\/code> &#8211; Triggers the form to appear when scrolling.<\/li>\n<li><code>onexit<\/code> &#8211; Makes the form pop up when user exits the page.<\/li>\n<li><code>onclick<\/code> &#8211; Displays the form when a user clicks on the page.<\/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; The shortcode below triggers a popup form with the template id of 123.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_popup_form template_id=123 \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Here, the shortcode will trigger a popup form with a delay of 5 seconds. The form uses the template id 123.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_popup_form template_id=123 delay=5 \/]<\/code><\/pre>\n\n\n<p>In this example, the shortcode will trigger a popup form when the user scrolls down the page. The form uses the template id 123.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_popup_form template_id=123 onscroll=true \/]<\/code><\/pre>\n\n\n<p>This shortcode will trigger a popup form when the user attempts to exit the page. The form uses the template id 123.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_popup_form template_id=123 onexit=true \/]<\/code><\/pre>\n\n\n<p>Finally, this shortcode will trigger a popup form when the user clicks on a specific element. The form uses the template id 123.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_popup_form template_id=123 onclick=true \/]<\/code><\/pre>\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\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[pluginops_popup_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( 'pluginops_popup_form', array($this, 'ulpb_template_popup_shortcode') ) ;<\/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 ulpb_template_popup_shortcode($atts, $content){\n   ob_start();\n    \n\t  extract( shortcode_atts( array(\n\n\t\t\t&#039;template_id&#039; =&gt; &#039;&#039;,\n\t\t\t&#039;delay&#039;\t\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onscroll&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onexit&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onclick&#039;\t  =&gt; &#039;&#039;,\n\t\t\t\n\t\t), $atts ) );\n\n\t$template_id = $template_id;\n\t$showFormOn  =  &#039;all&#039;;\n\t$popupDisplayDelay = $delay;\n\t$popupDisplayOnScroll = $onscroll;\n\t$popupDisplayOnExit = $onexit;\n\t$popupDisplayOnClick = $onclick;\n\t\n\t\n\t$isShortCodeTemplate = true;\n\t$isPopUpTemplate = true;\n\n\tif (defined(&#039;SMFB_PLUGIN_PATH&#039;)) {\n\t\t\n\t\tif (! is_admin()) {\n\t\t\tinclude SMFB_PLUGIN_PATH.&#039;public\/templates\/template.php&#039;;\n\t\t}\n\n\t}else{\n\t\techo &quot;PluginOps Optin Builder is not active&quot;;\n\t}\n\t\n\n   return ob_get_clean();\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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\">Mailchimp Subscribe Sm [pluginops_flyin_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Mailchimp-Subscribe-SM plugin shortcode, &#8216;pluginops_flyin_form&#8217;, is designed to display a fly-in form on your website. \n\n\n\nThe shortcode takes parameters like &#8216;template_id&#8217;, &#8216;delay&#8217;, &#8216;onscroll&#8217;, &#8216;onexit&#8217;, &#8216;onclick&#8217;, and &#8216;position&#8217; to customize the form&#8217;s behavior and position. \n\nIf the PluginOps Optin Builder is inactive, it shows a message indicating the same.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pluginops_flyin_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 pluginops_flyin_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>template_id<\/code> &#8211; Specifies the unique ID of the template to use.<\/li>\n<li><code>delay<\/code> &#8211; Sets the delay before the form appears, in seconds.<\/li>\n<li><code>onscroll<\/code> &#8211; Determines if the form appears when the user scrolls.<\/li>\n<li><code>onexit<\/code> &#8211; Determines if the form appears when the user is about to leave the page.<\/li>\n<li><code>onclick<\/code> &#8211; Determines if the form appears when the user clicks on a specific element.<\/li>\n<li><code>position<\/code> &#8211; Specifies the position of the form on the page (default is bottom right).<\/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 shortcode where we only specify the template_id parameter.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_flyin_form template_id=1 \/]<\/code><\/pre>\n\n\n<p>For advanced usage, we can specify multiple parameters to customize the behavior of the form. In the example below, we specify the template_id, delay, onscroll, onexit, onclick, and position parameters.<\/p>\n<p><strong>Advanced example<\/strong> &#8211; The shortcode is used to display a form that appears after a delay of 5 seconds, when the user scrolls to 50% of the page, or when the user tries to exit the page. The form appears at the bottom right of the page.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_flyin_form template_id=1 delay=5 onscroll=50 onexit=true onclick=true position=bRight \/]<\/code><\/pre>\n\n\n<p>Remember, the parameters are optional and if not specified, the plugin will use the default values. The template_id parameter is required to specify which form to display.<\/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>[pluginops_flyin_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( 'pluginops_flyin_form', array($this, 'ulpb_template_popup_flyin_shortcode') ) ;<\/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 ulpb_template_popup_flyin_shortcode($atts, $content){\n   ob_start();\n    \n\t  extract( shortcode_atts( array(\n\n\t\t\t&#039;template_id&#039; =&gt; &#039;&#039;,\n\t\t\t&#039;delay&#039;\t\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onscroll&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onexit&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onclick&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;position&#039;\t  =&gt; &#039;bRight&#039;,\n\t\t\t\n\t\t), $atts ) );\n\n\t$template_id = $template_id;\n\t$showFormOn  =  &#039;all&#039;;\n\t$popupDisplayDelay = $delay;\n\t$popupDisplayOnScroll = $onscroll;\n\t$popupDisplayOnExit = $onexit;\n\t$popupDisplayOnClick = $onclick;\n\t$popupPosition = $position;\n\n\t\n\t\n\t$isShortCodeTemplate = true;\n\t$isPopUpFlyInTemplate = true;\n\n\tif (defined(&#039;SMFB_PLUGIN_PATH&#039;)) {\n\t\t\n\t\tif (! is_admin()) {\n\t\t\tinclude SMFB_PLUGIN_PATH.&#039;public\/templates\/template.php&#039;;\n\t\t}\n\n\t}else{\n\t\techo &quot;PluginOps Optin Builder is not active&quot;;\n\t}\n\t\n\n   return ob_get_clean();\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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\">Mailchimp Subscribe Sm [pluginops_bar_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Mailchimp Subscribe SM Plugin shortcode is a powerful tool that triggers a subscription form. \n\n\n\nThis shortcode uses parameters like &#8216;template_id&#8217;, &#8216;show_form_on&#8217;, &#8216;delay&#8217;, &#8216;onscroll&#8217;, &#8216;onexit&#8217;, &#8216;onclick&#8217;, and &#8216;position&#8217; to customize the form&#8217;s behavior and appearance. It checks if the PluginOps Optin Builder is active and then displays the form accordingly. If not active, it alerts the user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pluginops_bar_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 pluginops_bar_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>template_id<\/code> &#8211; It&#8217;s the unique identifier of the template.<\/li>\n<li><code>show_form_on<\/code> &#8211; Decides where the form will display, default is &#8216;all&#8217;.<\/li>\n<li><code>delay<\/code> &#8211; Time delay before the form appears, in seconds.<\/li>\n<li><code>onscroll<\/code> &#8211; Form appears when user scrolls the page.<\/li>\n<li><code>onexit<\/code> &#8211; Form displays when user attempts to leave the page.<\/li>\n<li><code>onclick<\/code> &#8211; Form shows up when user clicks on a specific element.<\/li>\n<li><code>position<\/code> &#8211; Determines the location of the form on the page.<\/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; Displays a popup bar with a default template.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_bar_form template_id=\"1\" \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Display a popup bar with a specific template, showing the form on all pages, with a delay of 5 seconds, after scrolling 50% of the page, on exit intent, and on click event.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_bar_form template_id=\"1\" show_form_on=\"all\" delay=\"5\" onscroll=\"50\" onexit=\"true\" onclick=\"true\" \/]<\/code><\/pre>\n\n\n<p>Display a popup bar with a specific template at a specific position (for example, at the bottom of the page).<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_bar_form template_id=\"1\" position=\"bottom\" \/]<\/code><\/pre>\n\n\n<p>Display a popup bar with a specific template, showing the form only on specific pages, with a delay of 10 seconds, after scrolling 80% of the page, and on exit intent.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_bar_form template_id=\"1\" show_form_on=\"page\" delay=\"10\" onscroll=\"80\" onexit=\"true\" \/]<\/code><\/pre>\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\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[pluginops_bar_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( 'pluginops_bar_form', array($this, 'ulpb_template_popup_bar_shortcode') ) ;<\/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 ulpb_template_popup_bar_shortcode($atts, $content){\n   ob_start();\n    \n\t  extract( shortcode_atts( array(\n\n\t\t\t&#039;template_id&#039; =&gt; &#039;&#039;,\n\t\t\t&#039;show_form_on&#039;=&gt;&#039;all&#039;,\n\t\t\t&#039;delay&#039;\t\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onscroll&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onexit&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onclick&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;position&#039;\t  =&gt; &#039;&#039;,\n\t\t\t\n\t\t), $atts ) );\n\n\t$template_id = $template_id;\n\t$showFormOn  =  $show_form_on;\n\t$popupDisplayDelay = $delay;\n\t$popupDisplayOnScroll = $onscroll;\n\t$popupDisplayOnExit = $onexit;\n\t$popupDisplayOnClick = $onclick;\n\t$popupPosition = $position;\n\n\t\n\t\n\t$isShortCodeTemplate = true;\n\t$isPopUpBarTemplate = true;\n\n\tif (defined(&#039;SMFB_PLUGIN_PATH&#039;)) {\n\t\t\n\t\tif (! is_admin()) {\n\t\t\tinclude SMFB_PLUGIN_PATH.&#039;public\/templates\/template.php&#039;;\n\t\t}\n\n\t}else{\n\t\techo &quot;PluginOps Optin Builder is not active&quot;;\n\t}\n\t\n\n   return ob_get_clean();\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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\">Mailchimp Subscribe Sm [pluginops_full_page_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8216;pluginops_full_page_form&#8217; shortcode is a part of the Mailchimp-Subscribe-SM plugin. It enables the display of a full-page form on your WordPress site. \n\n\n\nThis shortcode accepts parameters like &#8216;template_id&#8217;, &#8216;show_form_on&#8217;, &#8216;delay&#8217;, &#8216;onscroll&#8217;, &#8216;onexit&#8217;, and &#8216;onclick&#8217;. You can customize the form&#8217;s appearance and behavior based on these parameters. For instance, you can set a delay for the form to appear or configure it to pop up on scroll, exit, or click. \n\nPlease note, this shortcode requires the PluginOps Optin Builder to be active. If not, it will display an error message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pluginops_full_page_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 pluginops_full_page_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>template_id<\/code> &#8211; Specifies the ID of the template to use.<\/li>\n<li><code>show_form_on<\/code> &#8211; Determines when the form should be displayed.<\/li>\n<li><code>delay<\/code> &#8211; Sets a delay before the form is displayed.<\/li>\n<li><code>onscroll<\/code> &#8211; Triggers the form when the user scrolls.<\/li>\n<li><code>onexit<\/code> &#8211; Triggers the form when the user attempts to exit.<\/li>\n<li><code>onclick<\/code> &#8211; Triggers the form when the user clicks.<\/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 shortcode to display a full page form with a specific template ID.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_full_page_form template_id=\"1\" \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Using the shortcode to display a full page form with a specific template ID, only on specific pages (for example, only on the &#8216;about&#8217; page), with a delayed display of 5 seconds.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_full_page_form template_id=\"1\" show_form_on=\"about\" delay=\"5\" \/]<\/code><\/pre>\n\n\n<p>Using the shortcode to display a full page form with a specific template ID, with a delayed display of 5 seconds, and also to trigger the form display when the user attempts to exit the page or when the user has scrolled down 50% of the page.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_full_page_form template_id=\"1\" delay=\"5\" onexit=\"true\" onscroll=\"50\" \/]<\/code><\/pre>\n\n\n<p>Using the shortcode to display a full page form with a specific template ID, to be displayed immediately when a specific element on the page is clicked (for example, a button with the ID &#8216;subscribe-now&#8217;).<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pluginops_full_page_form template_id=\"1\" onclick=\"#subscribe-now\" \/]<\/code><\/pre>\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\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[pluginops_full_page_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( 'pluginops_full_page_form', array($this, 'ulpb_template_popup_full_page_shortcode') ) ;<\/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 ulpb_template_popup_full_page_shortcode($atts, $content){\n   ob_start();\n    \n\t  extract( shortcode_atts( array(\n\n\t\t\t&#039;template_id&#039; =&gt; &#039;&#039;,\n\t\t\t&#039;show_form_on&#039;=&gt;&#039;all&#039;,\n\t\t\t&#039;delay&#039;\t\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onscroll&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onexit&#039;\t  =&gt; &#039;&#039;,\n\t\t\t&#039;onclick&#039;\t  =&gt; &#039;&#039;,\n\t\t\t\n\t\t), $atts ) );\n\n\t$template_id = $template_id;\n\t$showFormOn  =  $show_form_on;\n\t$popupDisplayDelay = $delay;\n\t$popupDisplayOnScroll = $onscroll;\n\t$popupDisplayOnExit = $onexit;\n\t$popupDisplayOnClick = $onclick;\n\n\t\n\t\n\t$isShortCodeTemplate = true;\n\t$isPopUpFullPageTemplate = true;\n\n\tif (defined(&#039;SMFB_PLUGIN_PATH&#039;)) {\n\t\t\n\t\tif (! is_admin()) {\n\t\t\tinclude SMFB_PLUGIN_PATH.&#039;public\/templates\/template.php&#039;;\n\t\t}\n\n\t}else{\n\t\techo &quot;PluginOps Optin Builder is not active&quot;;\n\t}\n\t\n\n   return ob_get_clean();\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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\">Mailchimp Subscribe Sm [pb_samlple_nav] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8216;pb_samlple_nav&#8217; shortcode from the Mailchimp-subscribe-sm plugin is designed to generate custom navigation menus. It takes parameters like menu style, color, font, and size, and uses them to render the appropriate menu. The menu options are only accessible to users with &#8216;editor&#8217; or &#8216;administrator&#8217; roles.\n\n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pb_samlple_nav]<\/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 pb_samlple_nav shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>pb_menu<\/code> &#8211; Name of the menu to display<\/li>\n<li><code>pb_logo_url<\/code> &#8211; URL of the logo to be displayed<\/li>\n<li><code>menucolor<\/code> &#8211; Color of the menu<\/li>\n<li><code>menu_class<\/code> &#8211; Style of the menu (menu-style-1, menu-style-2, menu-style-3, menu-style-4)<\/li>\n<li><code>menu_font<\/code> &#8211; Font used in the menu<\/li>\n<li><code>menu_fonthovercolor<\/code> &#8211; Color of the menu font on hover<\/li>\n<li><code>menu_fonthoverbgcolor<\/code> &#8211; Background color of the menu font on hover<\/li>\n<li><code>menu_fontsize<\/code> &#8211; Size of the menu font<\/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 shortcode to display a custom menu with default style.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pb_samlple_nav pb_menu=\"Main Menu\" \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>1. Displaying a custom menu with a specific style and custom font size.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pb_samlple_nav pb_menu=\"Main Menu\" menu_class=\"menu-style-2\" menu_fontsize=\"18px\" \/]<\/code><\/pre>\n\n\n<p>2. Displaying a custom menu with a specific style, custom logo URL, and custom menu color.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pb_samlple_nav pb_menu=\"Main Menu\" pb_logo_url=\"http:\/\/example.com\/logo.png\" menu_class=\"menu-style-3\" menucolor=\"#333333\" \/]<\/code><\/pre>\n\n\n<p>3. Displaying a custom menu with specific style, custom font, and custom hover colors for font and background.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pb_samlple_nav pb_menu=\"Main Menu\" menu_class=\"menu-style-4\" menu_font=\"Arial\" menu_fonthovercolor=\"#ffffff\" menu_fonthoverbgcolor=\"#000000\" \/]<\/code><\/pre>\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\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[pb_samlple_nav]<\/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( 'pb_samlple_nav', array($this,'pb_shortcode_sample_nav' ) );<\/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 pb_shortcode_sample_nav($atts, $content){\n\tif( current_user_can(&#039;editor&#039;) || current_user_can(&#039;administrator&#039;) ) {\n\t   ob_start();\n\t    \n\t\t  extract( shortcode_atts( array(\n\n\t\t\t\t&#039;pb_menu&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;pb_logo_url&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menucolor&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menu_class&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menu_font&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menu_fonthovercolor&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menu_fonthoverbgcolor&#039; =&gt; &#039;&#039;,\n\t\t\t\t&#039;menu_fontsize&#039; =&gt; &#039;&#039;,\n\t\t\t\t\n\t\t\t), $atts ) );\n\n\t\t$menuName = $pb_menu;\n\t\t$pageLogoUrl = $pb_logo_url;\n\t\t$menuColor = $menucolor;\n\t\t$menufont = $menu_font;\n\t\t$menufontHoverColor = $menu_fonthovercolor;\n\t\t$menuFontHoverBgColor = $menu_fonthoverbgcolor;\n\t\t$menuFontSize = $menu_fontsize;\n\n\t\tswitch ($menu_class) {\n\t\t\tcase &#039;menu-style-1&#039;:\n\t\t\t\tinclude(SMFB_PLUGIN_PATH.&#039;admin\/views\/menus\/menu-style-1.php&#039;);\n\t\t\tbreak;\n\t\t\tcase &#039;menu-style-2&#039;:\n\t\t\t\tinclude(SMFB_PLUGIN_PATH.&#039;admin\/views\/menus\/menu-style-2.php&#039;);\n\t\t\tbreak;\n\t\t\tcase &#039;menu-style-3&#039;:\n\t\t\t\tinclude(SMFB_PLUGIN_PATH.&#039;admin\/views\/menus\/menu-style-3.php&#039;);\n\t\t\tbreak;\n\t\t\tcase &#039;menu-style-4&#039;:\n\t\t\t\tinclude(SMFB_PLUGIN_PATH.&#039;admin\/views\/menus\/menu-style-4.php&#039;);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tinclude(SMFB_PLUGIN_PATH.&#039;admin\/views\/menus\/menu-style-1.php&#039;);\n\t\t\tbreak;\n\t\t}\n\t\t\n\n\t\techo $this_widget_menu;\n\t   return ob_get_clean();\n\n\t}\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\">mailchimp-subscribe-sm\/mailchimp-subscribe-sm\/admin\/classes\/admin.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>Mailchimp Subscribe Sm Plugin shortcodes<\/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 Mailchimp Subscribe Sm Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Mailchimp Subscribe Sm Plugin shortcodes not to show or not to work correctly. Before starting, here is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder","slug":"","version":"4.0.9.4","author":"<a href=\"https:\/\/pluginops.com\/optin-builder\/\">PluginOps<\/a>","icons":"https:\/\/ps.w.org\/mailchimp-subscribe-sm\/assets\/icon-128x128.png?rev=1810978","plugin_tags":"{\"contact-form\":\"contact form\",\"email\":\"email\",\"marketing\":\"marketing\",\"subscribe-form\":\"subscribe form\",\"subscribe-forms\":\"subscribe forms\"}","author_profile":"https:\/\/profiles.wordpress.org\/umarbajwa\/","requires":"3.2","tested":"6.3.2","requires_php":"false","rating":80,"num_ratings":65,"active_installs":4000,"downloaded":401784,"last_updated":"2023-07-27 6:03pm GMT","added":"2014-09-03","homepage":"https:\/\/pluginops.com\/optin-builder\/","short_description":"MailChimp Subscribe Form allows you to create Beautiful Professional looking Subscribe Forms, Popups, bars &amp; full page optins easily in less than  &hellip;","description":"\"MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder is a versatile plugin that allows seamless integration with MailChimp. It provides tools to create subscribe forms, engaging pop-ups, and customized forms.\"","shortcodes":"[\"pluginops_form\",\"pluginops_popup_form\",\"pluginops_flyin_form\",\"pluginops_bar_form\",\"pluginops_full_page_form\",\"pb_samlple_nav\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1864","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1864","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=1864"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1864\/revisions"}],"predecessor-version":[{"id":2460,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1864\/revisions\/2460"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=1864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=1864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}