Best to assign your 'Copy to clipboard' link/button an ID then you can define an event handler for click event . We put all of our javascript code into /js/scripts.js so you can use the same file.
Thanks for this. Doesn't seem too hard but I may need a little more handholding, sorry! Several hours this evening on it and I'm falling short. Here are some screenshots of the amended shortcode and .js update. If you're able to walk me through it more closely, you would be my favourite person today!
This one would be lovely if not too much work.
To drive action to contacting my client by email, see 'copy to clipboard' placeholder below the email address;
https://abstractvisible.com/contact/
Would be great to get this working! And perhaps one for the master theme too if we can do it?
Thanks as always,
Steve
Hello Steve
Best to assign your 'Copy to clipboard' link/button an ID then you can define an event handler for click event . We put all of our javascript code into /js/scripts.js so you can use the same file.
Here is also a short tutorial on this:
https://www.w3schools.com/howto/howto_js_copy_clipboard.asp
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy
Hello!
Thanks for this. Doesn't seem too hard but I may need a little more handholding, sorry! Several hours this evening on it and I'm falling short. Here are some screenshots of the amended shortcode and .js update. If you're able to walk me through it more closely, you would be my favourite person today!
Hope it doesn't take up too much of your time.
Steve