# How do I add a "copy" button to a code snippet?

**URL:** <https://forum.ghost.org/t/how-do-i-add-a-copy-button-to-a-code-snippet/34586>\
**Category:** Developer help\
**Created:** [December 3, 2022, 5:18pm UTC](https://forum.ghost.org/t/how-do-i-add-a-copy-button-to-a-code-snippet/34586 "2022-12-03T17:18:12Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [December 8, 2022, 2:40pm UTC](https://forum.ghost.org/t/how-do-i-add-a-copy-button-to-a-code-snippet/34586/14 "2022-12-08T14:40:07Z")

</div>

This gets you pretty close.

If you have a live version of this up and can share the link, I can give you some guidance on the CSS, as it’ll differ slightly depending on your theme, etc.

---

_[View the full topic](https://forum.ghost.org/t/how-do-i-add-a-copy-button-to-a-code-snippet/34586)._
