# Header Bar icon not showing up until i refresh the page

**URL:** <https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256>\
**Category:** ionic-v1\
**Created:** [October 9, 2015, 12:38pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256 "2015-10-09T12:38:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumeet123](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sumeet123](https://forum.ionicframework.com/u/Sumeet123)\
**Post date:** [October 9, 2015, 12:38pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256/1 "2015-10-09T12:38:27Z")

</div>

I am trying to use this for header bar:

```
    <div class="bar bar-header" style="background:Transparent; border:none;">
        <button class="button button-icon button-clear icon ion-navicon" menu-toggle="left" style="
             margin-left:10px; font-size:30px;"></button>   
     </div>

```

It appears correctly but only after refreshing once in the browser.  
It appears by default if i put it inside ion-content… but here the issue is it will get scrolled up…

Help please…

**EDIT**

Actually its the nav icon not showing until i refresh. i noticed header bar is present… i didnt get it before since its kept transparent.

Anyways please help me with that icon…

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [October 9, 2015, 6:25pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256/2 "2015-10-09T18:25:43Z")

</div>

Can you try using `ion-header-bar`? Like this:

```
<ion-header-bar class="bar-clear">
   <div class="buttons">
     <button class="button button-clear button-dark icon ion-navicon" menu-toggle="left" style="margin-left:10px; font-size:30px;"></button>
   </div>
 </ion-header-bar>

```

Codepen: [http://codepen.io/brandyshea/pen/dYRgBj?editors=101](http://codepen.io/brandyshea/pen/dYRgBj?editors=101)

---

<div class="post-metadata">

**Author:** ![Sumeet123](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sumeet123](https://forum.ionicframework.com/u/Sumeet123)\
**Post date:** [October 9, 2015, 7:16pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256/3 "2015-10-09T19:16:28Z")

</div>

Didn’t work !! In that particular state i have disabled ion-nav-bar using hide-nav-bar=“true”.

```
<ion-view view-title="" hide-nav-bar="true">

```

Then i am adding my custom header like above.

is that the reason ? when i used your header bar icon still was not visible and i cldnt even make it transparent

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [October 9, 2015, 7:27pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256/4 "2015-10-09T19:27:37Z")

</div>

The more information you provide, the easier it is to help. If you could make a codepen reproducing this problem, I could help more. 😄 I’ve forked the codepen above to give it a hidden ion-nav-bar and the same header above on that view. It is working for me: [http://codepen.io/brandyshea/pen/BoZGYj?editors=101](http://codepen.io/brandyshea/pen/BoZGYj?editors=101)

---

<div class="post-metadata">

**Author:** ![Sumeet123](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Sumeet123](https://forum.ionicframework.com/u/Sumeet123)\
**Post date:** [October 9, 2015, 7:44pm UTC](https://forum.ionicframework.com/t/header-bar-icon-not-showing-up-until-i-refresh-the-page/34256/5 "2015-10-09T19:44:45Z")

</div>

i dont know how we do that on codepen… never did it before…!! still I will try to…!!
