
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
Integration options
pre, code, .coupon) plus display conditions and live preview.[copy] (alias: [ctc]) for precise placement in the editor, widgets, and templates.Highlights
You can add copy buttons anywhere on your WordPress site using one of the following methods:
EASY: Shortcodes
Manually add copy controls with [copy] anywhere in your content.
AUTOMATIC: Global Injector
Automatically inject copy buttons into any element using CS selectors like pre, code, blockquote, or any custom selector with advanced display conditions.
Elementor Widgets
Add copy buttons visually using dedicated Elementor widgets.
Gutenberg Blocks
Insert copy buttons directly inside the WordPress block editor using Gutenberg blocks.
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)
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.).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.
Next live workshop: [copy]2030-03-19 10:00 America/New_York[/copy] — copy the full value for your calendar tool.
Billing questions? Email [copy][email protected][/copy] and include your order ID.
[copy display="[email protected]"]mailto:[email protected]?subject=Question%20from%20website[/copy]
Visitors see [email protected]; the clipboard receives the full mailto: string with the subject line.
Before you open a ticket, include:
Launch week only — use [copy]SPRINGLAUNCH26[/copy] at checkout for 25% off your first year.
[copy text="https://www.amazon.com/dp/B0D1EXAMPLE/ref=nosim?tag=clipboard0d-20"]Copy our Amazon pick[/copy]
The visitor reads Copy our Amazon pick; the clipboard gets the full tagged URL.
Track this shipment: [copy]1Z999AA10123456784[/copy]
Run this once: [copy]npx create-next-app@latest my-shop --typescript --eslint --tailwind --app[/copy]
Safe cache flush: [copy]wp cache flush && wp rewrite flush[/copy]
Production key (rotate after testing): [copy text="sk_live_51QxYzAbCdEfGhIjKlMnOpQrStUvWx0123456789" display="sk_live_…6789"]
Visitors only see the shortened mask; the full secret is still copied once for trusted teammates.
SSID: [copy]Guest-Office-5G[/copy] · Passphrase: [copy text="WinterLake#2026!" display="••••••••••••"]
Join the stand-up: [copy]https://teams.microsoft.com/l/meetup-join/19%3ameeting_EXAMPLE%40thread.v2/0?context=%7b%22Tid%22%3a%22...%7d[/copy]
Share photos with [copy]#ClipboardAgencyLive2026[/copy] — we monitor that tag all week.
[copy preset="button" button-text="Copy Docker install" text="curl -fsSL https://get.docker.com | sh"]
Docker CE (Ubuntu): [copy text="sudo apt-get install docker-ce docker-ce-cli containerd.io" preset="icon" tooltip="Copy apt install line"]
[copy preset="button" text="SAVE20" button-text="Copy code & checkout" redirect="https://clipboard.agency/checkout/?coupon=SAVE20"]
[copy preset="cover" text="body { margin: 0; font-family: system-ui, sans-serif; }" button-text="Copy CSS"]body { margin: 0; … }[/copy]
The visible card shows the shortened preview; the overlay copies the full CSS string.
[copy text="Open the parking map" content="https://maps.app.goo.gl/dQw4w9WgXcQ"]
SEPA reference: [copy]RF18539007547034[/copy]
Paste this body: [copy]{ "event": "signup", "plan": "pro", "trial_days": 14 }[/copy]
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
pre, code, blockquote, and more.pre, code, or blockquote).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.
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.pre or blockquote).For more detailed guides:
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:
You can explore live examples for all widgets here:
For full examples and widget demos:
[copy] / [ctc] for surgical placement in the classic editor, widgets, and templates.PRO adds advanced customization and analytics. Compare plans:
https://clipboard.agency/pricing/
10,000+ active installs rely on Copy Anything to Clipboard for docs, deals, dev blogs, and support content. It is built to cooperate with popular themes and page builders (including Elementor) instead of fighting your layout.
Ideas and edge cases help the roadmap. Share yours:
https://clipboard.agency/contact/
Installation, Elementor, Gutenberg, performance, and HTML vs plain text are covered in the FAQ tab on this plugin page.
We also provide a Google Chrome Extension that allows users to quickly copy content from any website.
Chrome Web Store: https://chromewebstore.google.com/detail/copy-anything-to-clipboar/mdljigkhfeiobmhanibkgjkldnabeahl
The extension works perfectly alongside the Copy Anything to Clipboard WordPress plugin, making it easy to copy text, links, commands, code snippets, and more across the web.
If the plugin saves you time, you can support ongoing development here:
https://www.paypal.me/mwaghmare7/
This plugin provides 4 blocks for the WordPress block editor:
Add a small icon that lets users quickly copy text or code to the clipboard.
Add a visible button that allows users to copy content with one click.
Display the title of the current taxonomy term such as category or tag.
Allow visitors to quickly share content across social media platforms.