# Copy code button

**URL:** <https://forum.ghost.org/t/copy-code-button/56375>\
**Category:** Using Ghost\
**Created:** [March 26, 2025, 3:23pm UTC](https://forum.ghost.org/t/copy-code-button/56375 "2025-03-26T15:23:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rolo/32/2107_2.png) [@rolo](https://forum.ghost.org/u/rolo)\
**Post date:** [March 26, 2025, 3:23pm UTC](https://forum.ghost.org/t/copy-code-button/56375/1 "2025-03-26T15:23:32Z")

</div>

Hello,

Can a “copy code” button be added to any Ghost theme?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/3/6/36bdcfaf5a118d4306c25f3e12c8f96009d9706a.png)

Any plugin or addon?

Thanks!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 26, 2025, 4:13pm UTC](https://forum.ghost.org/t/copy-code-button/56375/2 "2025-03-26T16:13:50Z")

</div>

There are no plugins in Ghost, but it should be possible to write some javascript to do this, both adding the button and making it do something. I’d google ‘copy code button’ for some ideas.

---

<div class="post-metadata">

**Author:** ![Theo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/theo/32/2432_2.png) [@Theo](https://forum.ghost.org/u/Theo)\
**Post date:** [March 29, 2025, 12:36am UTC](https://forum.ghost.org/t/copy-code-button/56375/3 "2025-03-29T00:36:40Z")

</div>

Here’s what I received when I asked this question in 2023: [How do I add a "copy" button to a code snippet? - #14 by RyanF](https://forum.ghost.org/t/how-do-i-add-a-copy-button-to-a-code-snippet/34586/14)  
Check out the last reply to the thread.
