Archived topic
Change from Word to Icon
5 replies · Started by Math on March 10, 2022
Hi,
I'm using Prism JS on the Code blocks. It comes with a "Copy" button which allows you to copy straight to the clipboard.
I'm wondering if it's possible to convert the word "Copy" to a SVG icon. Here's the demo page.
I looked around for potential solutions and they don't seem to be working.
Thank you.
Hi there,
I'm not familiar with what Prism JS is so unfortunately cannot comment.
This doesn't sound like a GP related issue though. Maybe try a forum like WordPress stack?
https://wordpress.stackexchange.com/
Please be mindful of what we can support in the forum here:
https://generatepress.com/what-support-includes/
Thanks for your understanding :)
Hi Leo,
I understand this isn't directly related to GP and I really didn't want to post it here but I've been searching for a solution for a few days now and couldn't get anything to work.
I was hoping to use elements. Thanks for the guidance!
Elements wouldn't be able to change how a custom js script works.
Ahh ok. Thank you.
No problem :)