• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

Code Click-to-Copy (WPJ Plugin)

WordPress plugins Oct 25, 2019 by Johnny 9 Comments

Plugin Description:

Click anywhere within <pre> code tags to automatically copy to clipboard.

Click your code text and it’s copied!

A simple little 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. With mine, you don’t have to aim your mouse or finger at any button, simply click anywhere on the code block and it copies the whole thing.

With all the guides out there sharing code-commands, especially on this site, it’s about time somebody made a plugin to save us all a little time from having to highlight and copy-paste bits of text back and forth. It’s especially time-saving when trying to copy large globs of code that scroll off-screen or trying to manage on your mobile phone.

  • The plugin is free for your personal/commercial use, but do buy me a beer if you like it. Enjoy! 🙂
  • I’m not responsible for what you do with it. If you have issues, you can ask for support on the WP.org repo.

Download Code Click-to-Copy:

  • WordPress.org repo
  • GitHub repo

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress plugins

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Plesk (Obsidian) Control Panel Review 2020

Astra vs OceanWP vs Generatepress – Best FREE WordPress Theme Review

Apache vs NGINX Comparison – use either but NOT BOTH!

CloudPanel – server control panel review

The FASTEST Way to Learn SEO

Use a REAL Email Hosting Service (not your web server!)

Reader Interactions

9 Comments

  1. Darkpollo

    October 29, 2019 at 10:24 am

    Hi, Thanks!
    What is the license of the plugin?

    Reply
    • Johnny

      October 29, 2019 at 10:45 am

      Right now, it’s officially under GNU GPL (as required for ALL WordPress plugins).

      Reply
  2. darkpollo

    October 29, 2019 at 5:48 pm

    Thanks I was confused with the “No, you cannot copy and repackage/resell them.” which goes against the GNU GPL.
    Not that I am going to do that anyway. 🙂

    Reply
    • Johnny

      February 5, 2020 at 5:34 pm

      Yeah, you’re totally right! It’s old copy-paste verbiage. 🙂

      Reply
  3. Sam

    November 17, 2020 at 7:33 am

    Hey Johnny, Just what I was looking for. Is there any instructions or documentation I can find for this?

    Reply
    • Johnny

      November 17, 2020 at 12:56 pm

      What documentation would you need? It’s really simple. Just activate and it works.

      Reply
  4. shiva108

    July 22, 2021 at 8:20 am

    Hi !
    I confirm that it doesn’t work with Divi…

    Reply
  5. Phil

    March 26, 2023 at 5:16 am

    Thanks! Great simple plugin, exactly what i was looking for

    Reply
  6. Larissa

    February 9, 2024 at 4:11 pm

    Having a small issue where the Click To Copy banner is behind the text and not in front
    https://1drv.ms/i/s!Ag5_OrteRK3QhaxLqf_sRXDsZXf4LA?e=WYlVOT

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy