# איך להוסיף אייקון חדש לכותרת

**URL:** <https://meta.discourse.org/t/how-to-add-a-new-header-icon/180273>\
**Category:** Product Support\
**Created:** [18 בפברואר,‏ 2021,‏ 11:36pm UTC](https://meta.discourse.org/t/how-to-add-a-new-header-icon/180273 "2021-02-18T23:36:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [18 בפברואר,‏ 2021,‏ 11:40pm UTC](https://meta.discourse.org/t/how-to-add-a-new-header-icon/180273/2 "2021-02-18T23:40:00Z")

</div>

It disappears because the code tells it to with `!showExtraInfo` (showExtraInfo is the scrolled state of the header):

```js
  if(!showExtraInfo) {
        return [helper.widget.attach('header-theme-selector')];
      }

```

If you change that entire `api.decorateWidget` block to:

```js
api.decorateWidget('header-buttons:after', (helper)=>{
  return [helper.widget.attach('header-theme-selector')];  
});

```

Then it should continue to appear even when scrolled.

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-new-header-icon/180273)._
