# Ion footer hiding

**URL:** <https://forum.ionicframework.com/t/ion-footer-hiding/96197>\
**Category:** ionic-v3\
**Created:** [June 28, 2017, 6:38pm UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197 "2017-06-28T18:38:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anggaand123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anggaand123/32/111105_2.png) [@anggaand123](https://forum.ionicframework.com/u/anggaand123)\
**Post date:** [June 28, 2017, 6:38pm UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/1 "2017-06-28T18:38:21Z")

</div>

Hello all  
im using sidemenu ionic 2  
and instead sidemenu im adding toolbar footer  
here my code

```auto
<ion-menu persistent="true" [content]="content" (ionClose)="collapseMenuOptions()">
<ion-content>
  <div padding class="menu-left menu-bg">
    <a menuClose>
      <img class="profile-picture img-responsive" src="img/logo.jpg">
    </a>
  </div>
  <side-menu-content [accordionMode]="true" [options]="options" (selectOption)="selectOption($event)"></side-menu-content>
</ion-content>
<div *ngIf="store == 2" >
	<ion-footer>
	  <ion-toolbar color="primary">
	    <p text-center style="color: white;" (click)="toko_saya()">Toko Saya</p>
	  </ion-toolbar>
	</ion-footer>
</div>
<div *ngIf="store == 1" >
	<ion-footer>
	  <ion-toolbar color="primary">
	    <p text-center style="color: white;" (click)="buka_toko()">Buka Toko</p>
	  </ion-toolbar>
	</ion-footer>
</div>
<div *ngIf="store == 3" >
	<ion-footer>
	  <ion-toolbar color="primary">
	    <p text-center style="color: white;">Toko Sedang diproses</p>
	  </ion-toolbar>
	</ion-footer>
</div>
</ion-menu>
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

```

here the output

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/d/c/dcc5d10b4f41eb298211f1dfaf61b819e8d422d9.jpeg)

you can see i have logout button little hidded insted toolbar footer, at some device logout button really hidding instead toolbar footer  
how can fixed that ??

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [June 28, 2017, 8:47pm UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/2 "2017-06-28T20:47:18Z")

</div>

I believe `<ion-footer>` must be a root-level element - i.e. no wrapping it inside of `<div>`s.

---

<div class="post-metadata">

**Author:** ![anggaand123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anggaand123/32/111105_2.png) [@anggaand123](https://forum.ionicframework.com/u/anggaand123)\
**Post date:** [June 29, 2017, 6:44am UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/3 "2017-06-29T06:44:29Z")

</div>

din tag is just for ngIf

---

<div class="post-metadata">

**Author:** ![akshatbhargava123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/akshatbhargava123/32/109845_2.png) [@akshatbhargava123](https://forum.ionicframework.com/u/akshatbhargava123)\
**Post date:** [June 29, 2017, 6:45am UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/4 "2017-06-29T06:45:54Z")

</div>

you can apply ngIf on ion-footer directly.

---

<div class="post-metadata">

**Author:** ![anggaand123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anggaand123/32/111105_2.png) [@anggaand123](https://forum.ionicframework.com/u/anggaand123)\
**Post date:** [June 29, 2017, 6:49am UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/5 "2017-06-29T06:49:05Z")

</div>

i changed.  
but not effect anyone

---

<div class="post-metadata">

**Author:** ![ansarikhurshid786](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@ansarikhurshid786](https://forum.ionicframework.com/u/ansarikhurshid786)\
**Post date:** [October 3, 2018, 11:11am UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/6 "2018-10-03T11:11:51Z")

</div>

I am also facing same issue. Have you got solution?

---

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [October 3, 2018, 11:19am UTC](https://forum.ionicframework.com/t/ion-footer-hiding/96197/7 "2018-10-03T11:19:51Z")

</div>

Maybe this will help you

> [@Hide Header and Footer on Scrolling with Animation](https://forum.ionicframework.com/t/hide-header-and-footer-on-scrolling-with-animation/143545):
>
> Demo: [infinity] generate directive ionic g directive HideHeader and copy below code in hide-header.ts file import { Directive, Input, ElementRef, Renderer } from '@angular/core'; @Directive({ selector: '[hide-header]', // Attribute selector host: { '(ionScroll)': 'onContentScroll($event)' } }) export class HideHeaderDirective { @Input("header") header: HTMLElement; @Input("footer") footer: HTMLElement; constructor(public element: ElementRef, public renderer: Renderer) { …
