Click anywhere within
codetags to automatically copy to clipboard.
Simple plugin that automatically copies content in <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 aiming your cursor at any button, simply click anywhere on the code block and it copies the whole thing.
- Easy Aim: Click anywhere on text block to copy entire text, no need to aim for tiny text or clipboard icon
- Tooltip Customization: Change tooltip text and colors
- Custom CSS Classes: Apply copy function to any content block, not only code blocks
- I18N Support: Full internationalization support
- Mobile Friendly: Works perfectly on mobile devices
- Lightweight: Minimal impact on page load
- Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the
/wp-content/plugins/directory - Activate the plugin through the "Plugins" menu in WordPress
After activation, go to Settings > Code Click to Copy to customize:
- Tooltip background color
- Tooltip text color
- Custom tooltip text
- Custom CSS classes for copy functionality
- Added comprehensive I18N support
- Improved translation capabilities
- Enhanced tooltip customization options
- Better mobile compatibility
- Initial release
- Basic click-to-copy functionality
- Simple tooltip system
For support and feature requests, please visit WPJohnny.com or create an issue on GitHub.
Contributions are welcome! Please feel free to submit a Pull Request.
This plugin is released under the GPL v2 or later license.