Site logo

Archived topic

Change from Word to Icon

5 replies · Started by Math on March 10, 2022

Viewing posts 1–6 of 6

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 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 :)

This archived topic is closed to new replies.