{"id":270,"date":"2017-10-17T08:46:17","date_gmt":"2017-10-17T08:46:17","guid":{"rendered":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/?page_id=270"},"modified":"2020-03-25T15:34:41","modified_gmt":"2020-03-25T15:34:41","slug":"custom-shortcode-ii","status":"publish","type":"page","link":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/custom-shortcode-ii\/","title":{"rendered":"Custom Shortcode II"},"content":{"rendered":"\n<div class=\"wp-block-group centered-form\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n\n\t<!-- BEFORE NEWSLETTER SUBSCRIPTION FORM -->\n\n\t<style>\n\t\t#subscription_form_1768108562 input[type=\"submit\"]{\n\t\t\t\t\t    color: #515151;\n\t\t\t\t\t    border: 1px solid #ebe9eb;\n\t\t\t\t\t    border-radius: 5px;\n\t\t\t\t\t    background: #ebe9eb;\n\t\t\t\t\t}\n\t\t\t\t\t#subscription_form_1768108562 input[type=\"submit\"]:hover{\n\t\t\t\t\t    color: #515151;\n\t\t\t\t\t    border: 1px solid #dad8da;\n\t\t\t\t\t    background: #dad8da;\n\t\t\t\t\t}\n\t\t\t\t\tp.yith_wcac_field_item:nth-of-type(2){float:left;width:50%}p.yith_wcac_field_item:nth-of-type(1){float:left;width:50%;padding-right:.5em}\t<\/style>\n\n\t<div class=\"yith-wcac-subscription-form woocommerce\" id=\"subscription_form_1768108562\">\n\t\t\t\t\t<h3>My newsletter Form II<\/h3>\n\t\t\n\t\t\n\t\t\t\t\t<div class=\"subscription-notice\">\n\t\t\t\t\t\t\t<\/div>\n\t\t\n\t\t\n\t\t<form method=\"POST\" data-hide=\"no\">\n\t\t\t\n\t<p class=\"yith_wcac_field_item\">\n\t\t\t\t\t<label for=\"yith_wcac_shortcode_items_first_name\">Name<\/label>\n\t\t\t\t\n<input type=\"text\" name=\"yith_wcac_shortcode_items[default][first_name]\" id=\"yith_wcac_shortcode_items_first_name\" value=\"\" placeholder=\"\" \/>\n\t<\/p>\n\n\t<p class=\"yith_wcac_field_item\">\n\t\t\t\t\t<label for=\"yith_wcac_shortcode_items_last_name\">Surname<\/label>\n\t\t\t\t\n<input type=\"text\" name=\"yith_wcac_shortcode_items[default][last_name]\" id=\"yith_wcac_shortcode_items_last_name\" value=\"\" placeholder=\"\" \/>\n\t<\/p>\n\n\t<p class=\"yith_wcac_field_item\">\n\t\t\t\t\t<label for=\"yith_wcac_shortcode_items_email\">Email<\/label>\n\t\t\t\t\n<input\n\ttype=\"email\"\n\tname=\"yith_wcac_shortcode_items[default][email]\"\n\tid=\"yith_wcac_shortcode_items_email\"\n\tvalue=\"\"\n\tplaceholder=\"\" \/>\t<\/p>\n\n\n<p class=\"yith_wcac_field_item\">\n\t\t\n<\/p>\n\n\n\n<input type=\"hidden\" name=\"yith_wcac_shortcode_items[hidden][status]\" value=\"1\"\/>\n<input type=\"hidden\" name=\"yith_wcac_shortcode_items[hidden][list]\" value=\"2\"\/>\n<input type=\"hidden\" name=\"yith_wcac_shortcode_items[hidden][context]\" value=\"shortcode\"\/>\n<input type=\"hidden\" name=\"success_message\" value=\"Thanks for subscribing\"\/>\n<input type=\"hidden\" id=\"yith_wcac_subscribe_nonce\" name=\"yith_wcac_subscribe_nonce\" value=\"bc418f0fd0\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/pages\/270\" \/>\t\t\t<input class=\"submit-form\" type=\"submit\" value=\"Send subscription\"\/>\n\t\t<\/form>\n\t<\/div>\n\n\t<!-- AFTER NEWSLETTER SUBSCRIPTION FORM -->\n\n<\/div><\/div>\n\n\n<p>\u00a0<\/p>\n<hr \/>\n<p>the above form use the following attributes&#8230;: <code>list=\"2\" title=\"My newsletter Form II\" tags_label=\"Choose your interests\" show_tags=\"beach,moutain,museam,music\" hide_form_after_registration=\"0\" submit_label=\"Send subscription\" success_message=\"Thanks for subscribing\" custom_css =\"p.yith_wcac_field_item:nth-of-type(2){float:left;width:50%}p.yith_wcac_field_item:nth-of-type(1){float:left;width:50%;padding-right:.5em}\"<\/code>.<\/p>\n<hr \/>\n<p>You can customize the subscription form defined from Shortcode options. Just you need add the following attributes&#8230;:<\/p>\n<ul>\n<li><strong>Default Attributes<\/strong>\n<ul>\n<li><strong>list<\/strong> :\u00a0(int) The id list that user will be added on Active Campaign.<\/li>\n<li><strong>title<\/strong>: (string) The form title.<\/li>\n<li><strong>submit_label<\/strong>: (string) The button Submit Label.<\/li>\n<li><strong>success_message<\/strong>: (string) The message that will be shows if register to Active Campaign has gone well.<\/li>\n<li><strong>hide_form_after_registration<\/strong>: (1,0) Choose if you prefer hide the shortcode form after registration. 1 = yes, 0=no.<\/li>\n<li><strong>status<\/strong>: (1,0) Set the current status for new user. 1 = active, 0 = unsubscribe.<\/li>\n<li><strong>instant_responders<\/strong>: (1,0) Set instant responders for new users (Status must be active). 1 = yes, 0 = no.<\/li>\n<li><strong>no_responders<\/strong>: (1,0) Do not send any future responders. 1 = yes, 0 = no.<\/li>\n<li><strong>send_last_message<\/strong>: (1,0)\u00a0Whether or not to send last broadcast campaign.\u00a01 = yes, 0 = no.<\/li>\n<li><strong>shows_tags<\/strong>: (string1, string2, &#8230;) Add the tags separated by commas,that will be added to registered user.<\/li>\n<li><strong>tags_label<\/strong>: (string) The tag label that describe tags to select.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><strong>Style Attributes<\/strong>\n<ul>\n<li><strong>enable_style<\/strong>: (1,0) Enable custom style on form. 1 = yes, 0 = no.<\/li>\n<li><strong>round_corners<\/strong>: (1,0) Define if we want round corners on Submit Button. 1 = yes, 0 = no.<\/li>\n<li><strong>background_color<\/strong>: (string) Define the background color for Submit button.<\/li>\n<li><strong>text_color<\/strong>:\u00a0(string) Define the text color for Submit button.<\/li>\n<li><strong>border_color<\/strong>:\u00a0(string) Define the border color for Submit button.<\/li>\n<li><strong>background_hover_color<\/strong>:\u00a0(string) Define the background color for Submit button when mouse is hover him.<\/li>\n<li><strong>text_hover_color<\/strong>:\u00a0(string) Define the text color for Submit button when mouse is hover him.<\/li>\n<li><strong>border_hover_color<\/strong>:\u00a0(string) Define the border color for Submit button when mouse is hover him.<\/li>\n<li><strong>custom_css<\/strong>:\u00a0(string) Define any custom css style.<\/li>\n<\/ul>\n<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>\u00a0 the above form use the following attributes&#8230;: list=&#8221;2&#8243; title=&#8221;My newsletter Form II&#8221; tags_label=&#8221;Choose your interests&#8221; show_tags=&#8221;beach,moutain,museam,music&#8221; hide_form_after_registration=&#8221;0&#8243; submit_label=&#8221;Send subscription&#8221; success_message=&#8221;Thanks for subscribing&#8221; custom_css =&#8221;p.yith_wcac_field_item:nth-of-type(2){float:left;width:50%}p.yith_wcac_field_item:nth-of-type(1){float:left;width:50%;padding-right:.5em}&#8221;. You can customize the subscription form defined from Shortcode options. Just you need add the following attributes&#8230;: Default Attributes list :\u00a0(int) The id list that user will be added on<a class=\"more-link\" href=\"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/custom-shortcode-ii\/\">Read more  &#10230;<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-270","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/pages\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":7,"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/pages\/270\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/pages\/270\/revisions\/471"}],"wp:attachment":[{"href":"https:\/\/plugins.yithemes.com\/yith-active-campaign-for-woocommerce\/wp-json\/wp\/v2\/media?parent=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}