{"id":1292,"date":"2018-07-11T19:01:22","date_gmt":"2018-07-11T13:31:22","guid":{"rendered":"https:\/\/holithemes.com\/plugins\/click\/?p=1292"},"modified":"2018-07-11T19:01:22","modified_gmt":"2018-07-11T13:31:22","slug":"shortcode-attributes","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/click\/shortcode-attributes\/","title":{"rendered":"Shortcode Attributes"},"content":{"rendered":"\n<p>By default shortcodes get values what\u2019s given in options page ( settings page of this plugin in admin ), we can override that using attributes.<\/p>\n\n\n\n<p><strong>num\u00a0<\/strong>\u00a0\u2013\u00a0 To change the number<\/p>\n\n\n\n<p><strong>style<\/strong>\u00a0\u00a0\u2013\u00a0 To change the style\u00a0<br\/>( E.g. style=1\u00a0 \u00a0\u2013 right now there are 8 styles )<\/p>\n\n\n\n<p><strong>text<\/strong> &#8211;\u00a0To add Pre-filled text.<br\/>( E.g.\u00a0 text= &#8220;To the sales team:\u201d )<br\/><\/p>\n\n\n\n<p><strong>position<\/strong>\u00a0\u00a0\u2013\u00a0 (To change the position )<br\/>E.g. position=fixed\u00a0 \u2013 to add fixed position style,\u00a0 any\u00a0 CSS positions<\/p>\n\n\n\n<p>\ufeff<strong>top<\/strong>\u00a0\u00a0\u2013\u00a0 ( E.g.\u00a0 \u2013\u00a0 left=10px , left=2% )<br\/><\/p>\n\n\n\n<p><strong>right<\/strong>\u00a0\u00a0\u2013\u00a0 ( E.g.\u00a0 \u2013\u00a0 left=10px , left=2%)<\/p>\n\n\n\n<p><strong>bottom<\/strong>\u00a0\u00a0\u2013\u00a0 ( E.g.\u00a0 \u2013\u00a0 left=10px , left=2% )<\/p>\n\n\n\n<p><strong>left<\/strong>\u00a0\u00a0\u2013\u00a0 ( E.g.\u00a0 \u2013\u00a0 left=10px , left=2% )<\/p>\n\n\n\n<p><strong>home<\/strong>\u00a0 \u00a0\u2013\u00a0 \u00a0To hide shortcodes in the home page, category, archive\u00a0<br\/>( home= hide )<\/p>\n\n\n\n<p>\ufeff<strong>hide_mobile<\/strong>\u00a0\u00a0\u2013\u00a0 \u00a0Hide that shortcode on the mobile device ( since version 1.5)<\/p>\n\n\n\n<p><strong>hide_desktop<\/strong>\u00a0\u00a0\u2013\u00a0 \u00a0Hide that shortcode on the desktop device ( since version 1.5 )<\/p>\n\n\n\n<p><strong>return_type<\/strong> &#8211; Default return type is chat, ( share, group_chat ). To change the return type to share add <strong>return_type=share<\/strong>,\u00a0To change the return type to group_chat add <strong>return_type=group_chat<\/strong><br\/><\/p>\n\n\n\n<p><strong>group_id<\/strong>\u00a0&#8211; To change the group id.<br\/>( E.g: group_id=hello )<\/p>\n\n\n\n<p><strong>share_text<\/strong>\u00a0 &#8211;\u00a0 By default share text will get the value from plugin settings, to change the text<br\/>( E.g: share_text=&#8221;hello friend, I want to buy this product {{url}}&#8221; )<\/p>\n\n\n\n<p><strong>appfirst<\/strong> &#8211; If any issue with cache plugin set app_first=true<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Attributes Specific to styles :<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Style-6<\/h3>\n\n\n\n<p><strong>s6_text<\/strong> &#8211;\u00a0To change the text.<\/p>\n\n\n\n<p><strong>s6_text_color<\/strong> &#8211;\u00a0To change the text color.<\/p>\n\n\n\n<p><strong>s6_background_color<\/strong> &#8211;\u00a0To change the\u00a0Background\u00a0color.<br\/><br\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Style-7<\/h3>\n\n\n\n<p><strong>s7_text<\/strong> &#8211;\u00a0To change the text.<\/p>\n\n\n\n<p><strong>s7_text_color<\/strong> &#8211;\u00a0To change the text color.<\/p>\n\n\n\n<p><strong>s7_text_color_hover<\/strong> &#8211;\u00a0To change the color\u00a0of\u00a0text hover.<\/p>\n\n\n\n<p><strong>s7_background_color<\/strong> &#8211;\u00a0To change the\u00a0Background\u00a0color.<\/p>\n\n\n\n<p><strong>s7_background_color_hover<\/strong> &#8211;\u00a0To change the color\u00a0of Background hover.<\/p>\n\n\n\n<p><strong>s7_border_color<\/strong>\u00a0\u2013\u00a0To change the Background color.<\/p>\n\n\n\n<p><strong>s7_border_color_hover \u2013<\/strong>\u00a0To change the color of border on hover.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Style-8<\/h3>\n\n\n\n<p><strong>s8_img &#8211;<\/strong>  To change the Image, Add Image URL.<\/p>\n\n\n\n<p><strong>s8_line_1 &#8211; <\/strong>To change the text in the first line.<\/p>\n\n\n\n<p><strong>s8_line_2 &#8211;<\/strong> To change the text in the second line.<\/p>\n\n\n\n<p><strong>s8_background_color &#8211;<\/strong> To change the Background color.<\/p>\n\n\n\n<p><strong>s8_border_color &#8211;<\/strong> To change the Border color.<\/p>\n\n\n\n<p><strong>s8_content_width &#8211;<\/strong> To change the width of the content.<\/p>\n\n\n\n<p><strong>s8_img_position &#8211;<\/strong> To change the position of the image.<\/p>\n\n\n\n<p>\u00a0If style position is right to screen then select right if left to screen then select left.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default shortcodes get values what\u2019s given in options page ( settings page of this plugin in admin ), we can override that using attributes. num\u00a0\u00a0\u2013\u00a0 To change the number style\u00a0\u00a0\u2013\u00a0 To change the style\u00a0( E.g. style=1\u00a0 \u00a0\u2013 right now there are 8 styles ) text &#8211;\u00a0To add Pre-filled text.( E.g.\u00a0 text= &#8220;To the sales &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/holithemes.com\/plugins\/click\/shortcode-attributes\/\"> <span class=\"screen-reader-text\">Shortcode Attributes<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1292","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/posts\/1292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/comments?post=1292"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/posts\/1292\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/media?parent=1292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/categories?post=1292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/click\/wp-json\/wp\/v2\/tags?post=1292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}