A free WordPress plugin that adds copy buttons to code blocks, email links and phone links, so visitors can copy them in one click.

Product Details
Wyld Clipboard Toolkit for WordPress
  • Code Block Buttons
  • A copy button on every code block, including the core Code and Preformatted blocks. Handy for commands, snippets and shortcodes.
  • Email and Phone Links
  • Visitors copy an email address or phone number in one click. Choose whether to copy the visible text or the address behind the link.
  • Your Own Elements
  • Add a class like .clipboard-copyable to anything, such as a coupon code or order number, and it gets a copy button too.
  • Hover or Always On
  • Show the button when someone points at the content, or keep it visible. Place it top right, top left, or inline after the text.
  • Match Your Site
  • Light, Dark or Minimal styles, or your own colours. Show an icon and text, just the icon, or just the text, and upload your own icon.
  • Live Preview
  • Every change shows in the preview on the settings page before you save.
  • Phones and Tablets
  • Touch screens can't hover, so choose to keep the button visible, move it inline, or turn it off on mobile.
  • Leave Things Out
  • Add the class clipboard-no-copy to any element or section, and nothing inside it gets a button.
  • Light and Accessible
  • One small script and stylesheet with no jQuery. Buttons work with the keyboard, and screen readers announce when something is copied.
  • Free
  • No paid version, no account and no API key. Coming soon to WordPress.org.

Wyld Clipboard Toolkit adds a small copy button to the content people copy most on your site. Code snippets, email addresses and phone numbers copy in one click, with no selecting or long-pressing.

Everything is set from one screen in your WordPress admin, and a live preview shows each change before you save.

What can get a copy button

  • Code blocks, including the core Code and Preformatted blocks
  • Email links (mailto:)
  • Phone links (tel:)
  • Any element with a CSS class you choose

Good fit for

  • Developer docs and tutorials
  • Contact and support pages
  • Directories with lots of email addresses and phone numbers
  • Coupon codes, order numbers and account IDs

Requirements

  • WordPress 6.0 or newer and PHP 7.4 or newer
  • A site that loads over HTTPS, since browsers only allow copying on secure pages

Wyld Clipboard Toolkit is coming soon to WordPress.org. Until then, you can try it on our demo page.

Screenshots

  • Screenshots: Copy buttons on code blocks, an email link and a phone link
  • Screenshots: Wyld Clipboard Toolkit general settings with the live preview
  • Screenshots: Wyld Clipboard Toolkit style settings with custom colours
  • Screenshots: Wyld Clipboard Toolkit feedback and mobile settings

Videos

Frequently Asked Questions

Answers to common questions.

What does Wyld Clipboard Toolkit do?

plus sign

It adds a small copy button to the content visitors copy most: code blocks, email links and phone links. You can also give a button to any element with a class you choose. One click copies the text, with no selecting or long-pressing.

How do I install it?

plus sign

Wyld Clipboard Toolkit is coming soon to WordPress.org. Once it's there:

  1. In your WordPress admin, go to Plugins > Add New and search for Wyld Clipboard Toolkit.
  2. Click Install Now, then Activate.
  3. Go to Settings > Clipboard Toolkit to choose what gets a copy button.

It works with WordPress 6.0 or newer and PHP 7.4 or newer.

Where are the settings?

plus sign

Go to Settings > Clipboard Toolkit, or click Settings under the plugin on the Plugins page. Everything is on one screen, split into General Settings, Styles, and Feedback & Mobile. The live preview on the right shows each change before you save.

Which content gets a copy button?

plus sign

Under Selectors, turn on any of these:

  • Code blocks: pre and code tags, including the core Code and Preformatted blocks
  • Email links: links that start with mailto:
  • Phone links: links that start with tel:
  • Custom Selector: any element with a class you choose

Code blocks, email links and phone links are on by default.

How do I add a copy button to my own elements?

plus sign

Turn on Custom Selector and enter a class, like .clipboard-copyable. Then add that class to any element on your site, for example with the Additional CSS class field in the block editor. Every element with that class gets a copy button.

Custom Selector only accepts a single class for now.

How do I stop a button from showing on one element?

plus sign

Add the class clipboard-no-copy to that element. Anything inside it is skipped too, so you can add it to a whole section. If you'd rather use your own class, change it under Exclude Selector.

Should email and phone buttons copy the text or the link?

plus sign

Under Copy Source, you can pick either one for email and phone links:

  • Visible text: copies what the visitor sees, like "Call our office".
  • Link URL: copies the address behind the link, without the mailto: or tel: part.

If your links show the address or number itself, both give the same result. If they show words instead, choose Link URL.

Can I change when and where the button shows?

plus sign

Yes. Under Copy Trigger, choose Show on hover to keep the page clean until someone points at the content, or Always show to keep the button visible.

Under Button Position, choose Top right, Top left, or Inline. Inline puts the button right after the text. Email and phone links always get their button right after the link.

How do I change how the button looks?

plus sign

In the Styles section:

  • Button Label / Icon: Icon + Text, Icon Only, or Text Only.
  • Upload Custom Icon: use your own icon instead of ours. PNG, JPG and WebP files work.
  • Button Style: Light, Dark, Minimal, or Custom. Custom lets you set the background, text, hover background and hover text colours.

Reset Colors and Reset Custom Icon put things back the way they were.

How long does the "Copied!" message stay up?

plus sign

2 seconds by default. You can set it anywhere from 1 to 10 seconds under Feedback Duration, in the Feedback & Mobile section. If copying fails, the button shows "Failed" for the same amount of time.

What happens on phones and tablets?

plus sign

Touch screens can't hover, so pick what happens under Mobile Behavior:

  • Always show on mobile: the button stays visible on phones, even if you chose Show on hover.
  • Show inline: the button sits after the text, so it doesn't cover anything on small screens.
  • Disable on mobile: no copy buttons on small screens.

Why doesn't copying work on my site?

plus sign

Browsers only allow copying on secure pages, so make sure your site loads over HTTPS. If the button says "Failed", that's usually the reason.

If buttons don't show up at all, check that Enable Toolkit is on, that the right selectors are ticked, and that the content isn't inside an element with your exclude class.

Will it work with my theme?

plus sign

It's built to work with any theme. All of its classes start with clipboard-toolkit-, so they won't clash with your theme or other plugins. If your theme's button styles still show through, let us know which theme you use.

Is it accessible?

plus sign

Yes. The copy buttons are real buttons, so they work with the keyboard as well as the mouse. With Show on hover, the button also shows when you tab to it. When something is copied, screen readers announce it.

Will it slow down my site?

plus sign

No. When the toolkit is on, it loads one small script and one stylesheet on the front end, and it doesn't need jQuery. When it's turned off, nothing loads. Its admin files only load on its own settings page.

Is it free?

plus sign

Yes. Wyld Clipboard Toolkit is a free plugin, with no paid version and no account needed.

What happens to my settings if I delete the plugin?

plus sign

If you just deactivate it, your settings stay. If you delete it from the Plugins page, its settings are removed from the database. If you've uploaded a custom icon, that stays in your Media Library.

Still Stuck?

Send us a support request with your WordPress version, plugin version and what's happening, and we'll help you sort it out.

v1.0.0 - Coming soon

  • First release