# Shortcode Parameters

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FzX0LO4K9iixmFAkp2zLr%2Fdlx-20246HsyQts2%402x.jpg?alt=media&#x26;token=9420adf2-116b-49e4-889a-5e3afa4b4444" alt=""><figcaption><p>Click to Share Box</p></figcaption></figure>

The Click to Share box can be enabled via shortcode. Here's a simple shortcode in use below:

{% code overflow="wrap" %}

```
[has_click_to_share]This is some text I'd like to share.[/has_click_to_share]                
```

{% endcode %}

It'll produce a default Click to Share box like shown below:

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FP7s9ROEvLBNcapsdVOT6%2Fdlx-2024kapj1O7R%402x.jpg?alt=media&#x26;token=d112e8da-e12d-434d-a0e3-a92011ea81c2" alt=""><figcaption><p>Default Appearance of Click to Share Shortcode</p></figcaption></figure>

Here's a diagram of the various parts of the Click to Share box.

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2Fnp7BqAnLbSCs6wF4dlrQ%2Fdlx-2024PdUwpybO%402x.jpg?alt=media&#x26;token=ab2434f5-8cd1-40a9-934f-2119f3c6e72c" alt=""><figcaption><p>Diagram of Click to Share Box</p></figcaption></figure>

1. Click to Share text - This is the text that will be shared with the social networks.
2. Click to Share button text - This is the text that is displayed for the Click to Share button.
3. 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](https://docs.dlxplugins.com/highlight-and-share/click-to-share-shortcode/custom-shortcode-themes)).

<div data-full-width="false"><figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FRVChg0Hx5F7ZKVe9fpLU%2Fdlx-2024cwAZKEr2%402x.jpg?alt=media&#x26;token=d74353a6-882e-45fb-abc6-3f201d225382" alt=""><figcaption><p>Default Theme</p></figcaption></figure> <figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FThJy1pAjPsmGUv1bT6Ho%2Fdlx-2024Kw1sVfWR%402x.jpg?alt=media&#x26;token=dbcb637f-21e7-4d81-9ada-e160bfad5335" alt=""><figcaption><p>Orange Theme</p></figcaption></figure> <figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2F3YQW4biagi5XMMam48F7%2Fdlx-2024Qj5pO0oW%402x.jpg?alt=media&#x26;token=cd97c8fe-2b2f-4347-a121-0f2369cfa574" alt=""><figcaption><p>Dark Theme</p></figcaption></figure> <figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FQ5ZA02fzvgvCK3ZtWmF4%2Fdlx-2024OmjFsEwW%402x.jpg?alt=media&#x26;token=7a5e9c0f-d50e-4fb4-9689-d9a80a873892" alt=""><figcaption><p>Blue Theme</p></figcaption></figure> <figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2Farm3lQdXbRwkUz0T3Tr1%2Fdlx-2024hD7TWND6%402x.jpg?alt=media&#x26;token=8cd3baac-f4f7-40ef-9eff-a1f68eed4984" alt=""><figcaption><p>Purple Theme</p></figcaption></figure> <figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FdmbPNoC1HNJpRgaRWf3f%2Fdlx-2024k9KLeg9j%402x.jpg?alt=media&#x26;token=71e1dc0a-abb3-4222-8d6b-ef2437bf97ea" alt=""><figcaption><p>Pink Theme</p></figcaption></figure></div>

### 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:

{% code overflow="wrap" %}

```
[has_click_to_share show_click_to_share="false"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### show\_click\_to\_share\_text

Show or hide the label in the Click to Share icon section.

Can be:

* true (default)
* false

Example:

{% code overflow="wrap" %}

```
[has_click_to_share show_click_to_share_text="false"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FyXvYJKnMcrYfJgbBm9J1%2Fdlx-2024vWx0EwL1%402x.jpg?alt=media&#x26;token=7d671277-b80f-481a-b88d-ed16c8e2585f" alt=""><figcaption><p>Click to Share With Sharing Label Hidden</p></figcaption></figure>

### show\_icon

Show or hide the icon in the Click to Share icon section.

Can be:

* true (default)
* false

{% code overflow="wrap" %}

```
[has_click_to_share show_icon="false"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FZBdEVZ82G5uW6tx73Pvo%2Fdlx-2024cutKgE73%402x.jpg?alt=media&#x26;token=c9a755fc-b43d-4049-a7ce-5e5156b2a19e" alt=""><figcaption><p>Click to Share Section Without an Icon</p></figcaption></figure>

### icon

Determine which sharing icon will be used in the Click to Share box.

Can be:

#### has-share-1

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FCCk26famchRwu0DDbj7N%2Fdlx-2024uKWuRjL2%402x.jpg?alt=media&#x26;token=9ba89d67-7024-4b95-b9cd-1e0a598bb9dd" alt=""><figcaption><p>Icon: has-share-1</p></figcaption></figure>

#### has-share-2

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FKYdiIhmLJOPmv0b9tnKL%2Fdlx-20246mBPWAnC%402x.jpg?alt=media&#x26;token=7e1c1d01-db33-455a-b768-2aa75906060b" alt=""><figcaption><p>has-share-2</p></figcaption></figure>

#### has-share-3

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2F54QcxkI3xQg5wxLwZlVe%2Fdlx-2024p9eXjWsv%402x.jpg?alt=media&#x26;token=81fc7748-bc69-4438-a00d-3d1c90e537e9" alt=""><figcaption><p>has-share-3</p></figcaption></figure>

#### has-share-4

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2F3tWocAofwW76ni7YHrKm%2Fdlx-2024u6wgTxQY%402x.jpg?alt=media&#x26;token=cefc68d0-1386-4ae6-a4da-2b6b544c2e31" alt=""><figcaption><p>has-share-4</p></figcaption></figure>

#### has-share-5

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FyrcocCar8hkgn2giPree%2Fdlx-2024hHbovoQE%402x.jpg?alt=media&#x26;token=20c43190-9841-4570-8a18-3c6ea83ff619" alt=""><figcaption><p>has-share-5</p></figcaption></figure>

#### has-share-6

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2Fxj0Qklq03e932NEnTTPr%2Fdlx-2024JrPFFe4J%402x.jpg?alt=media&#x26;token=394c2929-f01b-404b-9cca-ae55608fb3be" alt=""><figcaption><p>has-share-6</p></figcaption></figure>

#### has-share-7

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FtdUTKcObhhrvN4wLbJxi%2Fdlx-2024oYFC16t2%402x.jpg?alt=media&#x26;token=38f81169-d23e-4488-aa23-d27e6e85032f" alt=""><figcaption><p>has-share-7</p></figcaption></figure>

#### has-share-8

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FWVUDJDNZs7hEdeJDzXr3%2Fdlx-2024DLXmJ03y%402x.jpg?alt=media&#x26;token=b1b1856a-a342-438d-9520-afeb50baeeb4" alt=""><figcaption><p>has-share-8</p></figcaption></figure>

#### has-share-9

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FeBfQoWhQN6TVDSXyeZPZ%2Fdlx-2024Jq6wtBRQ%402x.jpg?alt=media&#x26;token=5e422227-6430-4090-942f-d4fbd5984a35" alt=""><figcaption><p>has-share-9</p></figcaption></figure>

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" icon="has-share-9"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### icon\_size

Determine the icon size of the Click to Share icon section.

Can be:

* small
* medium (default)
* large

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="pink" icon_size="large"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FISONBEXVE1XYRBlyLmYp%2Fdlx-2024uooMXKPX%402x.jpg?alt=media&#x26;token=fd4f10c9-9b9b-47af-9333-8e651e2d3dd5" alt=""><figcaption><p>Pink Theme With Large Icon Size</p></figcaption></figure>

### custom\_share\_text

Input text that will be shared instead of the wrapped sharing text.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share custom_share_text="Share this instead"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### font\_family

Choose the font family that will be used for the Click to Share shortcode.

Can be:

* (or custom font family)

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" icon="has-share-9" font_family="Josefin Sans" button_font_family="Lato"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### button\_font\_family

Choose the font family that will be used for the Click to Share button.

Can be:

* (or custom font family)

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" icon="has-share-9" font_family="Josefin Sans" button_font_family="Lato"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### click\_text

This will change the Click to Share button text.

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2FB6s8CDzXk1sFw9iOeU47%2Fdlx-2024syjMvQoM%402x.jpg?alt=media&#x26;token=2ef10540-8be4-4930-9720-bdaeb827d4a6" alt=""><figcaption><p>Custom Share This Text in the Button Area</p></figcaption></figure>

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" click_text="Share This!"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### margin

Specify the margin that'll be used for the Click to Share shortcode. This will override a theme default.

Default: empty.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share margin="20px auto"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### padding

Specify the padding that'll be used for the Click to Share shortcode. This will override a theme's default styles.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" padding="35px 45px"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### icon\_color, icon\_color\_hover

<figure><img src="https://219399540-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FII25Fu7h0q7vR3UqUhpk%2Fuploads%2Fd62FddQfEYAWcN5SeLIN%2Fdlx-2024kH8IMI3N%402x.jpg?alt=media&#x26;token=a9275a42-a691-41d2-8381-b0d464914669" alt=""><figcaption><p>Custom Icon Color and Hover Color</p></figcaption></figure>

Set the default color and hover color of the Click to Share icon.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" icon_color="#f58220" icon_color_hover="#e76f1a"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### text\_color, text\_color\_hover

Set the default and hover color value of the main body text in the Click to Share box.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" text_color="#f58220" text_color_hover="#e76f1a"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### share\_text\_color, share\_text\_color\_hover

Set the default and hover color of the sharing button.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="purple" share_text_color="#f58220" share_text_color_hover="#e76f1a"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### background\_color, background\_color\_hover

Set the default and hover background color of the Click to Share box.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" background_color="#dee2e6" background_color_hover="#FFFFFF"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### font\_size

The font size of the sharing text in the Click to Share box.

Can be:

* small
* medium (default)
* large

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" font_size="large"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### click\_share\_font\_size

The font size of the sharing button in the Click to Share box.

Can be:

* small
* medium (default)
* large

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" click_share_font_size="large"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### border, border\_hover

Set the CSS border of the Click to Share box in normal and hover state.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" border="1px solid red" border_hover="1px solid black"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### border\_radius

Specify the CSS border radius of the Click to Share box.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" border_radius="10px"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}

### max\_width

The maximum width of the Click to Share box. Can be any valid CSS width.

Example:

{% code overflow="wrap" %}

```
[has_click_to_share theme="default" max_width="550px" border_radius="10px"]This is some text I'd like to share.[/has_click_to_share]
```

{% endcode %}
