Copy Anything to Clipboard helps visitors copy text, links, coupon codes, commands, email addresses, AI prompts, and code snippets in one click—no awkward text selection on mobile, no broken formatting in the clipboard. Use it on blogs, docs, WooCommerce and deal sites, SaaS landing pages, tutorials
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 4.4 and PHP 5.6.
SourceWordPress plugins · Dec 5, 2026
01 / Source details
Aboutthistool.
Copy Anything to Clipboard helps visitors copy text, links, coupon codes, commands, email addresses, AI prompts, and code snippets in one click—no awkward text selection on mobile, no broken formatting in the clipboard.
Use it on blogs, docs, WooCommerce and deal sites, SaaS landing pages, tutorials, and support hubs where you want fewer “how do I copy this?” questions and smoother sharing of URLs, promos, and technical steps.
Why site owners install it
Better UX – Especially on touch devices, a dedicated copy control beats “long-press to select.”
Higher intent actions – Coupon codes, affiliate links, and checkout snippets convert better when copying is frictionless.
Flexible placement – Target elements automatically, or drop shortcodes/blocks only where you need them.
Integration options
Global Injector – Rules that match CSS selectors (e.g. pre , code , .coupon ) plus display conditions and live preview.
02AUTOMATIC: Global Injector Automatically inject copy buttons into any element using CS selectors like pre , code , blockquote , or any custom selector with advanced display conditions.
03Elementor Widgets Add copy buttons visually using dedicated Elementor widgets.
04Gutenberg Blocks Insert copy buttons directly inside the WordPress block editor using Gutenberg blocks.
METHOD 3 – Manually with “Shortcodes”
Use [copy] anywhere you want an explicit copy control (Classic editor, Shortcode block, widget areas, patterns, or PHP templates via do_shortcode() ). [ctc] is the same shortcode with a shorter name—use either.
How it works (matches the plugin code)
Default layout is the inline preset (clickable text + icon). Switch with preset="button" , preset="icon" , or preset="cover" .
text="…" (or text wrapped between [copy] and [/copy] ) is what lands on the clipboard.
display="…" overrides the visible label when it must differ from the copied string (masked secrets, mailto links, etc.).
Legacy pair: text="…" + content="…" — content is copied, text is what visitors see (handy for hiding long URLs behind a short CTA).
Try it on a fresh install — add a Shortcode block (or switch the block editor to Code editor ), paste one snippet, Update , view the page, and tap the control.
Example 1 – Datetime inside a sentence
Next live workshop: [copy]2030-03-19 10:00 America/New_York[/copy] — copy the full value for your calendar tool.
Example 2 – Email inside a sentence
Billing questions? Email [copy]invoices@clipboard.agency[/copy] and include your order ID.
Example 3 – Show the mailbox, copy a ready-made mailto link
Visitors see support@clipboard.agency ; the clipboard receives the full mailto: string with the subject line.
Example 4 – Mini support block (swap in your real IDs)
Before you open a ticket, include: - Order ID: [copy]WC-104592-UK[/copy] - Line item SKU: [copy]BM-HOODIE-M-NVY[/copy] - Return auth: [copy]REF-88C0A921[/copy]
Example 5 – Coupon inside marketing copy
Launch week only — use [copy]SPRINGLAUNCH26[/copy] at checkout for 25% off your first year.
The Global Injector is the most powerful way to automatically add copy buttons anywhere on your website.
It allows you to target elements using CSS selectors and control exactly where the copy buttons appear.
Key Capabilities
Display Conditions – Show copy buttons only on specific pages, posts, categories, or custom conditions.
Multiple Style Presets – Choose from Button , Icon , or Cover styles with live preview.
Advanced Targeting – Precisely target elements using CSS selectors such as pre , code , blockquote , and more.
Performance Optimized – Plugin assets load only on pages where copy buttons are used.
How to Use Global Injector
05Go to Copy to Clipboard → Global Injector in your WordPress dashboard.
06Click Add New Injector .
07Enter the CSS selector you want to target (for example: pre , code , or blockquote ).
08Select a style preset – Button, Icon, or Cover.
09(Optional) Configure Display Conditions to control where the copy button appears.
10Click Save and preview the changes on your site.
METHOD 2 – Automatically with “CSS Selector”
This is the quickest and most commonly used method . It automatically adds copy buttons to all elements that match a specific CSS selector.
Use this method when you want copy buttons to appear automatically across your entire website without manually adding them to each element.
Examples
Example 1 – Code Snippets
If your posts contain code snippets inside the <pre> tag, simply set the selector to pre (without the angle brackets < and > ).
The plugin will automatically add a copy button to every <pre> element , allowing visitors to copy code snippets with one click.
Example 2 – Blockquotes
If you want users to copy quotes from your blog posts, set the selector to blockquote (without the angle brackets < and > ).
A copy button will automatically appear for all blockquote elements on your site.
You can target any HTML element or custom class using CSS selectors such as:
pre – If your posts contain code snippets inside the <pre> tag.
code – If your posts contain code snippets inside the <code> tag.
blockquote – If you want users to copy quotes from your blog posts.
.coupon-code – If your posts contain coupon codes.
.email-address – If your posts contain email addresses.
.copy-this – If you want to copy specific content.
How to Use with CSS Selector
11Go to Copy to Clipboard in your WordPress dashboard.
12Click the Add New button.
13Enter the CSS selector you want to target (for example: pre or blockquote ).
14Click Create to save the selector.
15Visit your page and you will see the copy button automatically added to the targeted elements.
For more detailed guides:
Add copy buttons to blockquotes
Add copy buttons to code snippets
METHOD 4 – Manually with “Elementor Widgets”
The plugin includes multiple Elementor widgets that allow you to easily add copy buttons to specific content on your page.
Simply drag and drop a widget and configure the content you want visitors to copy.
These widgets are useful for many types of content including:
Emails
ChatGPT / AI prompts
Coupon codes
Deals and affiliate links
Inspirational quotes
Contact information
Addresses
Social media posts
Commands and technical code
Passwords and secure values
Notes, reminders, and checklists
Blog content and educational materials
Hashtags and social media resources
Research notes and documentation
Travel information and packing lists
Personal messages and quotes
You can explore live examples for all widgets here:
View Elementor widget demos
How to Use Elementor Widgets
16Install and activate the Elementor plugin.
17Open a page and click Edit
02 / Source details
Gettingstarted.
You can go from zero to working copy buttons in a few minutes—install the plugin, activate it, then add either a Global Injector rule or a shortcode on a test page.
01Install Copy Anything to Clipboard from this directory, or upload the plugin folder to:
wp-content/plugins
02Activate the plugin through the Plugins menu in WordPress.
03Go to WordPress Admin → Copy to Clipboard .
04Choose one of the following methods to add copy buttons:
05Global Injector (Recommended) Automatically inject copy buttons using CSS selectors and display conditions.
06CSS Selector Automatically add copy buttons to elements like pre , code , or blockquote .
07Shortcodes Manually add copy controls using [copy] or [ctc] .
08Elementor Widgets Drag-and-drop widgets for Elementor page builder.
09Gutenberg Blocks Use native WordPress blocks for copy buttons and icons.
For full setup instructions, read the documentation:
https://clipboard.agency/doc/
03 / Source details
Frequently asked questions.
What is the Global Injector?
The Global Injector (from v5.0.0) adds copy controls wherever matching elements appear. You define a CSS selector (for example pre , code , or .promo-code ), pick a Button , Icon , or Cover preset, optionally set display conditions , and preview before saving. Open WordPress Dashboard → Copy to Clipboard → Global Injector .
How do I add copy buttons to code snippets?
Create a Global Injector rule or a classic CSS selector entry with selector pre or code , choose a style, save, and matching code blocks get a copy control (subject to your display conditions).
Can I add copy buttons only on certain posts or pages?
Yes. Use display conditions in Global Injector, or use shortcodes only where you need them ( [copy] or [ctc] ).
Does this plugin work with Elementor?
Yes. With Elementor active, edit a page, search the panel for Copy , and use the dedicated widgets (copy button, code snippet, coupon, prompts, and more).
Does this plugin work with Gutenberg?
Yes. Insert the bundled blocks (for example Copy Button and Copy Icon ) from the block inserter.
Can I customize how the copy control looks?
Yes—styles, colors, placement, and labels are configurable in the admin. Global Injector includes a live preview . Deeper styling and analytics are part of PRO .
How can I control where copy buttons appear?
Use display conditions in Global Injector to limit rules by post type, taxonomy, individual content, user role, and more so design and asset loading stay intentional.
Is the plugin mobile friendly?
Yes. Copy actions are built for phones and tablets as well as desktop.
Does it work in all browsers?
Yes. Current versions of Chrome , Firefox , Safari , and Edge are supported.
Will this plugin slow down my website?
It is built to stay lightweight. Combine display conditions with how you scope rules so scripts and styles load where copy UI is actually used.
Can I copy one value but show a different label?
Yes. The legacy content attribute is what gets copied. Inner shortcode text is the visible label. Example: [copy content="/path/to/file"]Install path[/copy] copies /path/to/file and shows Install path .
Can the plugin copy HTML as well as plain text?
Yes. Depending on settings and shortcode attributes, content can be copied as plain text or HTML , which helps with code snippets and formatted excerpts.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati