Okay
  Public Ticket #2652233
Copy to clipboard link/button for email address?
Closed

Comments

  • Steve Dunn started the conversation

    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

  •  1,810
    Support replied

    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

  • Steve Dunn replied

    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

  •   Support replied privately