# Replace or hide tabs

**URL:** <https://forum.ionicframework.com/t/replace-or-hide-tabs/98290>\
**Category:** ionic-v3\
**Created:** [July 15, 2017, 8:46am UTC](https://forum.ionicframework.com/t/replace-or-hide-tabs/98290 "2017-07-15T08:46:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mraza08](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@mraza08](https://forum.ionicframework.com/u/mraza08)\
**Post date:** [July 15, 2017, 8:46am UTC](https://forum.ionicframework.com/t/replace-or-hide-tabs/98290/1 "2017-07-15T08:46:46Z")

</div>

I started a tabs project which has default 3 tabs, I need help in couple of things.

**1.** How can I hide tabs properly on specific pages? I have tried this approach which works but not sure if its the correct way, so when I go to somePage I have this implementation

constructor(){  
…  
this.tabBarElement = document.querySelector(’.tabbar.show-tabbar’);  
…  
}

ionViewWillEnter() {  
this.tabBarElement.style.display = ‘none’;  
}

ionViewWillLeave() {  
this.tabBarElement.style.display = ‘flex’;  
}

**2.** If I have tabs #HomePage, #AboutPage, #ContactPage at home page, when user click on #ContactPage tab I would like to replace #AboutPage and #ContactPage tabs with #ProfilePage and #DetailsPage tabs, and when user click on #HomePage it should display default tabs again.

Thanks for any help.

ionic info

global packages:

```
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1 
Ionic CLI : 3.5.0

```

local packages:

```
@ionic/app-scripts : 2.0.0
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.5.0

```

System:

```
Node : v7.10.0
OS : Linux 4.4
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 4.2.0
```

---

<div class="post-metadata">

**Author:** ![pedrobuelna](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pedrobuelna/32/131655_2.png) [@pedrobuelna](https://forum.ionicframework.com/u/pedrobuelna)\
**Post date:** [March 11, 2020, 1:26am UTC](https://forum.ionicframework.com/t/replace-or-hide-tabs/98290/2 "2020-03-11T01:26:59Z")

</div>

i have the same problem, did you resolve that ?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:01pm UTC](https://forum.ionicframework.com/t/replace-or-hide-tabs/98290/3 "2021-07-19T21:01:29Z")

</div>

Closed on July 19, 2021, 9:01pm UTC


