Add your own 'kontur Copy Code Button' with your own icon, text, class, color and 'pre' background. Works as well with the Gutenbe …
This Plugin will add your own ‘kontur Copy Code Button’ to any code-block on your site. When clicked, the code is copied to the clipboard. Works as well on mobile devices and the standard Gutenberg WP-Code-Block.
Want more
Please get involved and send uns your ideas. Via email or on the WordPress support page 🙂
More info on installing WP plugins
Uninstalling
This plugin cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.
This section describes how to install the plugin and get it working.
Upload kontur-copy-code-button.php
to the /wp-content/plugins/
directory
Activate the plugin through the ‘Plugins’ menu in WordPress
Go to WordPress Admin > Appearance > Copy Code Button and change your settings
Note: To use your normal theme button settings ’empty’ the background color setting and the button text color setting. And also set the appropriate class(es) in the settings field.
Under WordPress Admin > Appearance Copy Code Button or click the link ‘Settings’ under the plugin in your WordPress Admin Plugins section.
Actually, you don’t. Not really. Once the plugin is activated, it will add its magic to your “code blocks”. The default text on the button is “Copy me”, with “Code copied” appearing once the code has been copied to the clipboard.
If you want to use an icon, you can either use our predefined one, choose one from your library or simply upload your own
Yes, on the settings page you can add classes.
Yes. We are working on integrating the options as well into the Gutenberg blocks, fo e.g. having individial “copy texts” for each block. As well we want to offer more copy-icons.
Yes, we got three of them you’d might like:
Yes. Please get in touch via email email with a brief description of your requirements and budget for the project and we will start something else together.
Well, go for it! You can either make a donation or leave a rating to motivate me to keep working on the plugin.