• Skip to main content

Better Click To Tweet

Turning quotes into tweets from readers on your WordPress website

  • UTM Tags Docs
  • Customer Login
  • Buy Add-ons

Blog

Jan 14 2019

Premium Styles update Information

Versions of the Premium Styles add-on before (and including) version 1.3 should be updated to work with Better Click To Tweet version 5.7.0+

The Short Version

You should update the core plugin from the plugins page on the back end of your site to version 5.7.1 (which you have if a large red box directed you here), and then update the add-on, and then re-enter your license key which you can get at your account page.

If you have trouble updating automatically, you can manually update the add-on by deactivating, deleting, and reinstalling from the ZIP file which you can download from your account page above.

The Long Version

When I first created the Better Click To Tweet Premium Styles add-on, I had no plans to add a second add-on, and so I baked the licensing functionality directly into the add-on itself. Not only is that a bit wonky in general, but it also was not very forward-thinking.

Since then I’ve begun to contemplate other add-ons that would enhance the functionality of the BCTT ecosystem. But it all has to start with my undoing the “license functionality lives within the add-on” setup I created.

As of version 5.7.1 of Better Click To Tweet (the main plugin in the free directory), all of the licensing functionality has moved into the main plugin in a way that will allow me to be able to add additional add-ons in a much easier way.

Part of that transition means that the older versions of the add-on where the licensing is baked in no longer function with the new licensing engine in the main plugin.

So when you go to the new shiny Add-on Licenses page with the older version of Premium Styles active, you’re greeted with a jarring large red box that directs you here for directions on updating your add-on before you add in the license key.

This will be a one-time fix. Once you get moved over to the newer version of the add-on, you should be all set going forward.

I’m happy to answer any questions you’ve got. Email ben (at) wpsteward (dot) com if you need anything at all.

Written by webdev · Categorized: Uncategorized

Oct 31 2016

How to change the “Click to Tweet” text on Better Click to Tweet for WordPress

More goodness with every release. Have you supported your local developer today?
More goodness with every release. Have you supported your local developer today?

Last week I added a feature to Better Click To Tweet for WordPress that continues to cause it to live up to it’s name.

You can officially change the “Click To Tweet” anchor text on a per-box basis, now. Here’s what I mean:

Before, while it was possible to change the text that is tweeted (kind of the whole point of the plugin…) it was not possible to change the “Call to Action” text. It always read “CLICK TO TWEET.” Beyond being translatable into a different language, that’s pretty much what you were stuck with.

Not any more! Now using the new ‘prompt’ parameter in the shortcode, you can make that text say whatever you’d like.

This shortcode:

[bctt tweet="The best 'click to tweet' WordPress plugin just got even better (again)!" prompt="tell a friend"]

Produces this box:

The best 'click to tweet' WordPress plugin just got even better (again)! tell a friend Which makes for a very customizable experience! Off the top of my head, I could see using this for things as simple as changing it up, or as complicated as A/B testing to see which call to action gets more clicks!

I’ve also added this to the official Better Click To Tweet power user guide.

It’s also worth noting that this improvement was suggested on the official support forum, and implemented in less than 24 hours! If you appreciate prompt attention, and useful plugins, the way to prove it is to donate:

http://benlikes.us/donate

Thanks so much for using my plugins!

Written by · Categorized: Better Click To Tweet docs

May 10 2016

How To Switch to Better Click To Tweet.

So I’ve convinced you that switching plugins from Click to Tweet by the folks over at TodayMade (the makers of the top-notch content marketing editorial calendar CoSchedule) is worth it. But what about all of those tweet quotes you’ve already added to dozens (if not hundreds) of blog posts?

Going back through to switch each quote manually is a huge headache at best, or a deal-breaker at worst.

This is a tutorial for how to do it in fewer than 10 minutes, with one plugin and a few clicks.


Warning: read carefully, and you should be fine. Skip ahead and you could irreparably (translation, I can’t fix it even if I wanted to) damage the database, and mess up everything.


The first thing you’ll need to do is download and configure the Better Click To Tweet plugin. The two plugins should peacefully coexist, so don’t uninstall the old plugin until the end of this tutorial.

Next, before you do anything on WordPress (especially related to the database) always take a full backup, stored on your local computer (or some cloud backup server). I trust you understand that backups are a non-negotiable must-have for anybody who wants to keep anything they’ve ever said on their website, so this is more fundamental than the scope of this tutorial.

There are several solutions out there for backups, the most respected being VaultPress (made by the folks over at Automattic, the step-parent of WordPress).

I have also used BackupBuddy from iThemes, and have heard great stuff about Migrate DB pro. I don’t care how you back everything up, just that you DO back everything up. (shameless plug: I offer that as a service) Also, it’s worth having a test site to make sure you know how to restore from that backup.

Please don’t skip this step, because I won’t be able to help you get back everything if you do something even just slightly wrong.

::climbs down off of soapbox::

Now, for a bit of a basic lesson on how WordPress works. The database stores all of the words on your site, including pages, posts, and other content. For our purposes today, we are looking to find every instance of the old Click To Tweet code that looks like this:

[Tweet "Some tweetable quote..."]

And replace it with our nice new Better Click To Tweet WordPress shortcode:

[bctt tweet="Some tweetable quote..."]

Note that all we need to replace is the beginning portion of the old pseudo-shortcode. Everything after (and including) the first quotation mark can remain unchanged.

To make that change, we need to do what is appropriately called a “search and replace” on the database. There are several plugins in the official WordPress.org repository that claim to be able to make the changes. The one I have used and recommend (despite the fact that it has the ominous WordPress warning “this plugin has not been tested with your version of WordPress”) is Search Regex.

Install the plugin, make sure you’ve gotten a full backup that you can confidently restore from, and configure the plugin like so (this page can be found under the “Tools” menu in your admin area):

You can't see it, but I did put the space in the first box after the word "Tweet." I don't know if it matters or not.
You can’t see it, but I did put the space in the first box after the word “Tweet.” I don’t know if it matters or not.

The first time around, click the replace button, and scroll down to see the proposed changes. If those look right (make sure that the spacing is correct in the new shortcodes!), scroll back to the top and click “Replace and Save.”

As they say in France, “Voila!” You have upgraded your Click To Tweet experience, and future-proofed your WordPress site!

You may now (after you verify that everything looks satisfactory on the front end of your site) safely deactivate and uninstall the Click to Tweet plugin by TodayMade.

If you run into any issues, restore from the backup I insisted you make above, start a thread on the support forums (so that everyone can benefit from our back-and-forth), and I will happily help you get switched over!

Welcome to the Better Click To Tweet family. Why not let others know how great it is:

I just switched to Better Click To Tweet with the help of this tutorial! Share on X

Written by · Categorized: Better Click To Tweet docs, tech support

Apr 03 2016

BCTT Tutorial: Changing the “via username” on a Per-Box basis.

As of version 4.7, users of my popular Better Click To Tweet WordPress Plugin have the ability to programmatically change the “via @username” on a per-box basis. Here’s how that works:

If you use the visual editor, clicking the little blue birdie icon will produce the pop-up that you are used to, with one important difference. Now, instead of a simple checkbox to enable or disable the “via,” it gives the option to change the username as well.

The username field pre-populates with the Twitter username you have set in the settings page for the plugin, if you have set that. If you uncheck the box, no username will be appended to the tweet when a user tweets, even if you you leave the username in the text field.

If you are using the text editor, here’s how to formulate the new shortcode:

[bctt tweet="some compelling quote from Guest Poster." username="guestposter"]

Note: If you use the shortcode attribute via="no" then no matter what you put in the username attribute, the plugin will ignore it; via="no" is an override-style attribute that will remove any username from the tweet.

Written by · Categorized: Better Click To Tweet docs

Feb 03 2016

Better Click To Tweet: Power User Guide

This is the guide to the hidden features of the Better Click To Tweet WordPress plugin. To start with, here’s a bit of philosophy. (If you want to get straight to the how-to, skip to the appropriate sections below)

Why Hide the Power Features?

WordPress is a fantastic tool for publishing. The low entry bar and “5 minute install” have made it such that you can set your (least tech-savvy) grandfather up with a self-hosted website that he can update and love.

I always have your grandfather in mind when I am developing my plugins. I want to go out of my way not to do something that would lose him. The WordPress philosophy calls this “Decisions, not Options.”:

As developers we sometimes feel that providing options for everything is a good thing, you can never have too many choices, right? Ultimately these choices end up being technical ones, choices that the average end user has no interest in. It’s our duty as developers to make smart design decisions and avoid putting the weight of technical choices on our end users.

To date, the only visible option in the plugin (beyond putting in your Twitter username and whether you want to use short urls, two options on the settings page) is the option to remove or replace the “via @username” on each tweet box.

It turns out the Internet is a picky place, and requests for very specialized functionality started rolling in. This guide is for those power users. Here’s to making power users happy while not alienating your grandpa.

So, instead of making visible options (which violates the spirit of the WordPress philosophy), I made each of the following features an invisible one: you have to know they’re there to utilize them. There’s no checkbox or dropdown menu.

Selectively Removing the URL

A few users have asked for the ability to remove the URL from the tweet. The vast majority of my plugin’s users want a link back to the post when they create a click to tweet box, but for those who don’t, now there’s a way to remove that link.

This is such a life-changing quote it doesn't need a link. Share on XIf you want to remove the URL linking back to your post from a tweet, simply modify the shortcode, adding a new parameter of url="no". So, to make a box that looks and behaves like the quote to the left. (click the text to see that there’s no URL in the resulting tweet)

Your shortcode would look like this:
[bctt tweet="This is such a life-changing quote it doesn't need a link." url="no"]

If you additionally wanted to remove the “via” the shortcode would be:
[bctt tweet="This is such a life-changing quote it doesn't need a link." url="no" via="no"]

UPDATE: as of version 4.2, now you can input a custom URL in the url parameter, and the custom url (no matter how long) will be passed on to the tweet. So, this shortcode will link to the fictitious page “http://yourwebsite.com/you-can-even-use-long-urls-here”:
[bctt tweet="This tweet will contain a totally custom URL" url="http://yourwebsite.com/you-can-even-use-long-urls-here"]

Have you checked out the best Click To Tweet plugin for WordPress? Share on X This is helpful for click to tweet boxes that you want to use to link to other things, like products. For example, I could use it to promote my plugins from within a blog post, like the quote to the left. No shame in going ahead and tweeting that, and coming back to the rest of the article.

I’ll wait.

Known issues:

  • URLs with non-ascii characters (éåø and the like) are not currently supported. This is a limitation of PHP. Use a URL shortener to shorten such links before inserting them in the additional shortcode parameter
  • You must include the http:// or https:// at the beginning of the url parameter.
  • If your URL has the & symbol in it, it’ll confuse Twitter, and things will go badly. To avoid this issue, manually shorten your custom URLs that have that symbol in them using a service like bit.ly before inserting it in the shortcode.

Selectively making links “nofollow”

If you, like me, have only a vague idea of what the concept of “nofollow” is in the SEO world, this infographic might help.

Making the front-facing links in your Better Click To Tweet boxes “nofollow” probably has very little effect on your SEO, but some folks pay a lot of attention to such things, and started to request on the forum that I enable rel="nofollow" on the links generated on posts by my plugin.

As of version 4.0, adding the nofollow attribute in the Better Click To Tweet box is as simple as adding an extra nofollow="yes" attribute to the shortcode:

[bctt tweet="Dear Search Engines, Please don't follow this link." nofollow="yes"]

Designing Custom Templates

Do you love the Better Click To Tweet plugin, but aren’t super jazzed by the design of the boxes?

I made a premium add-on to give you style options! Introducing Better Click To Tweet Premium Styles.

If you are more of a developer, there are two options to completely take control of the design of the boxes on the front end of the site.

Here’s a step-by-step on how to make that happen.

  1. Connect via FTP to your site’s server.
  2. Drag the bcttstyle.css file currently in /wp-content/plugins/better-click-to-tweet/assets/css to the root of your /wp-content/uploads directory
  3. Poof. Done. Your box style just completely changed, and you haven’t touched any code.
Just drag it, drop it, and go refresh your site!

Any changes you make to the bcttstyle.css file will be reflected on your site. If you don’t like the new style, you can change it back by moving, renaming, or deleting the file in your /uploads directory. Also, the fact that the new file lives in the root of your /uploads directory means that any changes you make to it will not be overwritten by future plugin updates!

*note* If you come up with some cool designs, feel free to let me know, and they can be included in the plugin as options in future releases. I’ll credit you here and on the official WordPress.org repository page.

Edit: as of version 4.9, I’ve given developers who want to completely dequeue the stylesheet that option, by making the function that registers the stylesheets filterable. Here’s a snippet that dequeues the styles altogether, in case you’d rather put those styles in your theme:

(I recommend putting that snippet in a must-use plugin)

Changing the Anchor Text

As of version 4.10, you can change the anchor text (which defaults to “CLICK TO TWEET”) on your bctt boxes, using the “prompt” parameter. Here’s what I mean:

[bctt tweet="This Click To Tweet plugin has features that many paid plugins don't!" prompt="tell a friend"]

This Click To Tweet plugin has features that many paid plugins don't! tell a friend …Creates a quote like the one to the left! That’s a great way to test to see what text works best as a call to action!

I’ll continue to update this post in the event that more advanced features are added to the plugin. Here’s to making the web a less confusing space for your Grandpa, but a more powerful place for you.

Speaking of my services (wait, did I forget to mention I offer WordPress services?) I specialize in outrunning and outsmarting hackers. Contact me today to get started.

Written by · Categorized: Better Click To Tweet docs

  • UTM Tags Docs
  • Customer Login
  • Buy Add-ons

Copyright © 2025 · Altitude Pro on Genesis Framework · WordPress · Log in