10 Tricks for Super Effective Tweet Buttons (Share on X)
Do your tweet buttons actually get clicked? Every site has share buttons, but most are tiny, slow and easy to ignore. Since Twitter became X, many sites still show an old bird icon that readers no longer recognise. Here are 10 tricks for effective tweet buttons that people want to click, plus fast code that needs no JavaScript and no tracking scripts, updated for X in 2026.

Quick answer: Make tweet buttons effective by using a clear size, the current X logo and black brand colour, a call to action such as “Share on X”, and a share link to https://x.com/intent/tweet?text=...&url=...&via=yourhandle. Build it as a plain link with an icon font or SVG instead of X’s widget script, so it loads instantly.
Table of Contents
The tweet button code we use
Here’s a simple, fast tweet button for a WordPress theme. It’s just a link, styled with Bootstrap and an icon from Font Awesome:
<a class="btn btn-dark" title="Share on X"
href="https://x.com/intent/tweet?text=<?php echo rawurlencode( get_the_title() ); ?>&url=<?php echo rawurlencode( get_permalink() ); ?>&via=qot"
target="_blank" rel="noopener nofollow">
<i class="fa-brands fa-x-twitter"></i> Share on X
</a>rawurlencode()safely encodes spaces and symbols in the title and URL. (Our 2014 version usedstr_replacefor spaces only.)via=qotadds our account, @qot, to every share.target="_blank"opens X in a new tab, so the article stays open.
The old twitter.com/intent/tweet address still works and redirects to x.com.
10 tricks for effective tweet buttons
1. Use a size people can see and tap
Tiny buttons are hard to spot and almost impossible to tap on a phone. Aim for at least 44 × 44 pixels on mobile, without overpowering your design.
2. Use the current X brand colour
Twitter’s light blue has been replaced by X’s black-and-white branding. A black button with a white X logo is instantly recognisable; old blue bird buttons now look outdated.
3. Use the X logo, not the bird
Readers recognise the X logo as the network. Font Awesome 6 includes it as fa-x-twitter. Use the official icon rather than drawing your own version.
4. Add a clear call to action
An icon alone doesn’t invite a click. Add text such as “Share on X” or “Post” next to the logo. Plain “X” or “Twitter” labels describe the network but don’t ask readers to act.
5. Add a hover effect
A subtle change of colour or shadow on hover shows the button is clickable, a small but important piece of good design.
6. Open the share in a new tab
The official widget opens a pop-up, which some browsers block. A link with target="_blank" opens the share box in a new tab and keeps your article in view.
7. Don’t show low share counts
X removed public share counts for links years ago, and showing a small number only discourages sharing anyway. Let readers share because they like the article.
8. Share the clean permalink
Share your full canonical URL. X automatically shortens every link with its t.co service, so you don’t need a separate URL shortener, and tracking parameters just make links look messy.
9. Add your X handle
Including via=yourhandle credits your account in every share, helps you gain followers, and lets you see who shared your article in your notifications.
10. Make buttons load fast
X’s official button script adds extra downloads and tracking to every page. A plain link with an icon font or inline SVG loads instantly. We first used pure CSS social icons, then icon fonts; both keep pages fast, as do our Bootstrap speed tricks.
Bonus: valid, accessible HTML
Escape the ampersands (&) in the link and add a title or visible text so screen readers announce the button properly.
Put share buttons where readers decide
Place a tweet button at the end of the article, when readers have just finished reading, and optionally in a floating share bar on large screens. On mobile, many readers use the phone’s own share sheet, so make sure your page title and Open Graph image look good when shared.
Frequently asked questions
Is the Twitter share URL still working?
Yes. Both twitter.com/intent/tweet and x.com/intent/tweet open the X post box with your text and link filled in.
Should I use X’s official share button script?
You don’t need to. A plain share link does the same job without extra scripts or tracking, and it’s faster.
How do I add hashtags to the tweet?
Add &hashtags=wordpress,seo to the share URL, separating hashtags with commas and without the # symbol.
Liked this article? Share it on X.
Subscribe to our weekly tech newsletter
New tech guides, free tools and 2-minute fixes, once a week.
🎁 100 Tech Terms ebook comes free with every subscription.
Unsubscribe anytime. See our privacy policy.







Super effective twitter marketing tricks:
Post short and effective content
Use hash tag in twitter post
Open in New Tab plugin for wordpress is very useful, So I can do automatically and save my times.
your tips is really good and its work for me.
thanks for sharing .
Great post. It is very helpful in my twitter account. Thanks a lot for sharing this post.
it works. your tips is really good and very effective. this twitter button allow users to tweet your post in twitter easily. just click on it
the button shows awesome clicks.
These are general tips but the idea of bird color with your brand color is a really good idea….
P Chandra, your article is really useful for me. I am using plugin for flying Twitter image. Can you share code or script for same purpose? I am not coding expert due to this not have idea how to do this.
Really helpful post and your points to helpful for the websites, I’ll follow your tip on my site. Thanks for sharing with us.