BACK TO DIRECTORY

Code Click to Copy

by treeflips

4.7
(14 ratings)

Simple plugin that automatically copies content in <pre> and <code> tags to clipboard (when clicked). Other plugins out there do the same but create a little [COPY] button that you have to aim for. Mine doesn’t require any aiming, just click anywhere on the code block and it copies the whole thing. Customizable hover tooltip lets you know it’s copied.

For sites sharing code-commands, this plugin will save users time from having to highlight and copy-paste bits of text back and forth. It’s especially helpful for large globs of code that scroll off-screen, or when copying on your mobile phone. I’ve added more features to make it more helpful.

Features:
* Easy aim – click anywhere on text block to copy entire text, no need to aim for tiny text or clipboard icon.
* Tooltip text customization – change tooltip text.
* Tooltip color options – customize tooltip background and text colors.
* Tooltip hover custom CSS – completely restyle the tooltip hover.
* Tooltip function custom CSS – apply tooltip function to other CSS classes. Allowing copy function on any content block, not only code blocks.

Plugin Details

Active Installs
700
Total Downloads
15,194
Version
1.0.1
Requires WP
4.9
Requires PHP
Tested Up To
6.8.8
Added
2020-02-12
Last Updated
2025-08-07 4:37pm GMT

Ratings

5
13
4
0
3
0
2
0
1
1