How Do I Create Pattern Copy Button (As Found in WP.org Blok Pattern Directory)
-
Hello,
I would like to implement a one-click copy pattern button similar to the one being used in the WordPress Block Pattern Library .I have tried (the admittedly hacky workaround outlined below to no success):
- Creating a block pattern using Gutenberg.
- Switching to Code Editor & Copying the pattern code.
- Pasting the code into a Code Block
- Activating the plugin ‘Copy Anything To Clipboard’.
- Using the CAtC Button to copy the pattern code.
- Creating a New Page
- Switching to Code Editor & Pasting The pattern code.
This methodology does not work; it only pastes the pattern code into a Classic Block.
What is the correct means of implementing a ‘Copy Pattern’ Button on my website so that visitors can one-click copy a pattern?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How Do I Create Pattern Copy Button (As Found in WP.org Blok Pattern Directory)’ is closed to new replies.