I am looking to add some advanced functionality to my Shopify site. I am hoping to be able to include a section, where users can “Copy text to clipboard” like the attached photo.
I know this may be a long shot, but I was wondering if anybody knows how to add this functionality to a Shopify website and if they can provide some assistance.
I am assuming it takes quite a bit of knowledge of coding to implement. I have an intermediate understanding of coding for Shopify liquid.
The forum thread describes how you can implement Javascript to enable a copy to clipboard option, and the other article describes how to use HTML to do this. Both should definitely do the trick.
Let me know which part of your site you are looking to add this, and I’d be happy to provide any further guidance.
Thank you so much @Olivia_2 ! This was extremely helpful and exactly what I was looking for! I have copied the code but I am unsure where to place it in the liquid.
I am looking to include the feature on select blog posts and only in the blog section and it appears like the attached image. I am hoping to have the functionality, precede each blog post.
I don’t see any attached images with your post, but I can still walk you through adding this code to a blog post via HTML.
In fact, we have an additional tutorial that shows you how to use the rich text editor to insert HTML content into any blog post. I trust that will work for you, but let me know if anything else comes up.