Wyld Clipboard Toolkit

By WyldCode - e-dimensionz Inc.

0+ active installationsVersion 1.0.0

Add copy buttons to code blocks, email links, phone links, or any element you choose. Built to work with any theme.

Description

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

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

What you can copy

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

For email and phone links, you can copy either the visible text or the address behind the link.

Settings

  • Show the button on hover, or keep it visible
  • Place it top right, top left, or inline after the text
  • Icon and text, icon only, or text only
  • Upload your own icon (PNG, JPG or WebP)
  • Light, Dark, Minimal, or your own colors for the button and hover
  • Keep specific elements out with an exclude class (default: .clipboard-no-copy)
  • Set how long the “Copied!” message stays up (1 to 10 seconds)
  • Choose what happens on mobile: always show, show inline, or turn it off

Built to fit in

All classes are prefixed with clipboard-toolkit-, so the plugin won’t clash with your theme or other plugins. The buttons use a system font at a fixed size, so they look the same in paragraphs, tables and code blocks, and they work with the keyboard as well as the mouse.

Installation

  1. Upload the wyld-clipboard-toolkit folder to /wp-content/plugins/, or install it from Plugins > Add New.
  2. Activate the plugin.
  3. Go to Settings > Clipboard Toolkit, or click Settings under the plugin on the Plugins page.
  4. Choose what gets a copy button and save.

FAQ

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

Turn on Custom Selector and enter a class, like .copy-this. Any element with that class gets a button.

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

Add the class clipboard-no-copy to that element, or anything inside it. You can also set your own class under Exclude Selector.

Can I use any CSS selector?

Not yet. Custom Selector and Exclude Selector only accept a single class, like .copy-this.

Why doesn’t copying work on my site?

Check that your site loads over HTTPS first, since some browsers only allow copying on secure pages. A few in-app browsers block copying completely. When that happens, the button shows “Failed” so visitors know to copy it by hand.

Will it slow down my site?

No. When the toolkit is on, it loads one small script and one stylesheet on the front end, and doesn’t use jQuery. When it’s off, nothing loads.

What happens to my settings if I delete the plugin?

They’re removed from the database when you delete the plugin from the Plugins page.

Screenshots

Changelog

1.0.0

  • First release.