Shortcode Parameters
You can enable the Click to Share box anywhere shortcodes are supported.
The Click to Share box can be enabled via shortcode. Here's a simple shortcode in use below:
It'll produce a default Click to Share box like shown below:
Here's a diagram of the various parts of the Click to Share box.
Click to Share text - This is the text that will be shared with the social networks.
Click to Share button text - This is the text that is displayed for the Click to Share button.
Click to Share icon - The icon used for the Cilck to Share button.
Here are the shortcode arguments available for the Click to Share shortcode box.
unique_id
Use this to wrap a unique ID around the shortcode, otherwise it'll be random.
theme
Can be:
default (light appearance)
purple
blue
dark
orange
pink
none (choose to define your own styles)
custom-slug (see creating your own Custom Shortcode Themes).
align
Can be:
left
center (default)
right
show_click_to_share
Show the Click to Share section with text and an icon.
Can be:
true (default)
false
Example:
show_click_to_share_text
Show or hide the label in the Click to Share icon section.
Can be:
true (default)
false
Example:
show_icon
Show or hide the icon in the Click to Share icon section.
Can be:
true (default)
false
icon
Determine which sharing icon will be used in the Click to Share box.
Can be:
has-share-1
has-share-2
has-share-3
has-share-4
has-share-5
has-share-6
has-share-7
has-share-8
has-share-9
Example:
icon_size
Determine the icon size of the Click to Share icon section.
Can be:
small
medium (default)
large
Example:
custom_share_text
Input text that will be shared instead of the wrapped sharing text.
Example:
font_family
Choose the font family that will be used for the Click to Share shortcode.
Can be:
Josefin Sans
Karla
Lato
Montserrat
Open Sans
Playfair Display
Raleway
Roboto
Source Sans Pro
(or custom font family)
Example:
button_font_family
Choose the font family that will be used for the Click to Share button.
Can be:
Josefin Sans
Karla
Lato
Montserrat
Open Sans
Playfair Display
Raleway
Roboto
Source Sans Pro
(or custom font family)
Example:
click_text
This will change the Click to Share button text.
Example:
margin
Specify the margin that'll be used for the Click to Share shortcode. This will override a theme default.
Default: empty.
Example:
padding
Specify the padding that'll be used for the Click to Share shortcode. This will override a theme's default styles.
Example:
icon_color, icon_color_hover
Set the default color and hover color of the Click to Share icon.
Example:
text_color, text_color_hover
Set the default and hover color value of the main body text in the Click to Share box.
Example:
share_text_color, share_text_color_hover
Set the default and hover color of the sharing button.
Example:
background_color, background_color_hover
Set the default and hover background color of the Click to Share box.
Example:
font_size
The font size of the sharing text in the Click to Share box.
Can be:
small
medium (default)
large
Example:
click_share_font_size
The font size of the sharing button in the Click to Share box.
Can be:
small
medium (default)
large
Example:
border, border_hover
Set the CSS border of the Click to Share box in normal and hover state.
Example:
border_radius
Specify the CSS border radius of the Click to Share box.
Example:
max_width
The maximum width of the Click to Share box. Can be any valid CSS width.
Example:
Last updated