# Making a search icon with a theme

**URL:** <https://meta.discourse.org/t/making-a-search-icon-with-a-theme/234929>\
**Category:** Support\
**Created:** [August 3, 2022, 4:21am UTC](https://meta.discourse.org/t/making-a-search-icon-with-a-theme/234929 "2022-08-03T04:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [August 3, 2022, 4:21am UTC](https://meta.discourse.org/t/making-a-search-icon-with-a-theme/234929/1 "2022-08-03T04:21:04Z")

</div>

Hi!

I was trying to insert an icon next to the search header to try and learn how to inset items into Discourse for a start.

However, this didn’t work.

```plaintext
<script>
node = document.getElementsByClassName('search-page-heading');
node.insertAdjacentElements('beforebegin', '<svg class="PixlzThemeSearchIcon" aria-hidden="true"><use xlink:href="#search"></use></svg>');
</script>

```

It could be a stupid mistake (as some of you know I become more stupid at night), but help is appreciated.  
Thanks!

---

_[View the full topic](https://meta.discourse.org/t/making-a-search-icon-with-a-theme/234929)._
