Boost Sharing (PRO)
How to Add a Click-to-Tweet Box (PRO)
PRO feature
The Click to Post quote box is available in Social Linkz PRO. The free plugin does not include it. See Social Linkz PRO for details.
Want a highlighted, tweetable pull quote inside your article — the kind readers tap to post to X in one click? Social Linkz PRO's Click to Post box does that with a single shortcode. Drop in a quote, and the whole box becomes a share link that opens X pre-filled with your text, the post's URL and any hashtags.
What is a Click-to-Tweet box?
A Click-to-Tweet box (Click to Post) is a Social Linkz PRO feature that renders a quote as a styled block inside your post. The entire block is a share link to X's intent page, pre-filled with the quote so a reader can post it in one click. It's built with a shortcode, so you can place it anywhere in your content.
How to add a Click to Post box
Add this shortcode wherever you want the box to appear:
[social_linkz_post tweet="Your quote here"]
The alias [social_linkz_tweet] works identically, so boxes inserted by older versions keep working.
If you use the Classic (TinyMCE) editor, there's also a Click to Post button in the editor toolbar that opens a dialog and inserts the shortcode for you — including a live character count as you type the quote.
Shortcode attributes
Every option can be set per box as a shortcode attribute:
| Attribute | What it does |
|---|---|
tweet |
The quote text (required). |
theme |
Box style — default, simple, or simple-alt. |
cta_text |
The call-to-action label, e.g. "Click to Post". |
cta_position |
Which side the call to action sits on — left or right (default). |
remove_url |
Set to true to leave the post URL out of the tweet. |
remove_username |
Set to true to leave your via @handle out of the tweet. |
hide_hashtags |
Set to true to hide trailing hashtags from the displayed box. |
accent_color |
A custom accent colour for this box, e.g. #1da1f2. |
Example shortcodes
A plain quote box using your global defaults:
[social_linkz_post tweet="Great content markets itself when you make it easy to share."]
A quote with a custom theme, call to action and accent colour:
[social_linkz_post tweet="Ship early, learn fast, iterate. #startups #product" theme="simple-alt" cta_text="Share this" accent_color="#6c2eb9"]
Here the trailing #startups and #product are pulled out of the visible text and passed to X as hashtags, so they don't spend your character budget twice.
How to set global defaults
Rather than repeat attributes on every box, set defaults once. Go to Social Linkz → Settings and open the Click to Post tab:
| Option | What it does |
|---|---|
| Theme | Default box style — Default (accent background), Simple (transparent background), or Simple Alternate (grey background). |
| Call To Action Text | The default call-to-action label (defaults to "Click to Post"). |
| Call To Action Position | Which side the call to action sits on — Right (default) or Left. |
| Accent Color | The default accent colour for every box that doesn't set its own. |
An attribute on an individual shortcode always overrides the matching global default.
How the tweet is measured and trimmed
Click to Post measures your quote against X's real posting rules so the shared text always fits:
- A URL counts as 23 characters. X replaces every link with a fixed-width
t.colink before counting, so the box budgets 23 characters for your post URL no matter how long the permalink actually is. - Over-long quotes are trimmed on a word boundary. If a quote is too long once the URL,
via @handleand hashtags are accounted for, it's cut at a whole word and an ellipsis is added — never mid-word. - Trailing hashtags move into the tweet's hashtags. Hashtags at the end of the quote are pulled out and passed as X's hashtag parameter, so they aren't counted twice against the character budget.
Conclusion
The Click to Post box in Social Linkz PRO turns any quote into a one-click share to X, styled to match your content and measured against X's real character rules. Add [social_linkz_post tweet="…"] where you want it, set site-wide defaults under Social Linkz → Settings → Click to Post, and override per box as needed. To let readers share their own selections instead, see highlight to share.
FAQs
Is the Click to Post box free?
No. The Click to Post quote box is a Social Linkz PRO feature. The free plugin does not include it.
What's the difference between [social_linkz_post] and [social_linkz_tweet]?
Nothing — [social_linkz_tweet] is an alias of [social_linkz_post] and accepts the same attributes. The alias exists so boxes inserted by older versions keep working.
Will a long quote break my tweet?
No. Click to Post budgets for the post URL (a flat 23 characters on X), your via @handle and any hashtags, then trims the quote to fit on a whole-word boundary with an ellipsis if it's still too long.
Can I use hashtags in the quote?
Yes. Hashtags at the end of the quote are moved into the tweet's hashtags parameter automatically, so they don't count against the character budget twice. Add hide_hashtags="true" to keep them out of the visible box.
How do I change the look of the box?
Set a site-wide Theme and Accent Color under Social Linkz → Settings → Click to Post, or override them per box with the theme and accent_color attributes. Three themes are available: Default (accent background), Simple (transparent), and Simple Alternate (grey).
Is there a button in the editor?
Yes. In the Classic (TinyMCE) editor there's a Click to Post toolbar button that opens a dialog, shows a live character count, and inserts the shortcode for you.