Why is the IONIC Tabs navbar showing up in subpages?

I am facing an issue with my tabs navbar overlapping on my other subpages as well.

<ion-header>
  <ion-navbar hideBackButton="true">
    <span class="hdr-clr">Winkrr</span>
    <ion-buttons start>
      <button ion-button icon-only>
        <ion-icon style="color:#ed145b;" name="ios-search"></ion-icon>
      </button>
    </ion-buttons>
    <ion-buttons end>
      <button ion-button icon-only>
        <ion-icon style="color:#ed145b;" name="ios-notifications-outline"></ion-icon>
      </button>
    </ion-buttons>
    <ion-buttons end>
      <button ion-button icon-only>
        <ion-icon style="color:#ed145b;" name="ios-contact-outline"></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>
</ion-header>
<ion-tabs tabsPlacement="top" tabsHideOnSubPages="true" primary>
  <ion-tab tabIcon="md-globe" [root]="tab1Root"></ion-tab>
  <ion-tab tabIcon="stats" [root]="tab2Root"></ion-tab>
</ion-tabs>

My sub page has its own navbar which I would like to customize.

<ion-header>

  <ion-navbar hide-tabs>
    <ion-title>personal-chat</ion-title>
  </ion-navbar>

</ion-header>

In order to navigate, I use the following function:

  onContact(){
    this.navCtrl.push(PersonalChatPage);
  }

I have encountered an issue where the same navbar appears on subpages even though I have set it up for the tabs page only in Ionic 2.

Answer №1

One approach could be to define the configuration in your app.module.ts file as shown below:

 imports: [
        IonicModule.forRoot(MyApp, {
            // Customize Tabs
            tabsHideOnSubPages: true,
            ...
        })
    ]

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to insert a video as the background of a section in HTML Bootstrap while also reducing its opacity?

`Hello everyone! I'm diving into coding and creating my own website for the first time. I've managed to put together a decent site, but now I want to take it up a notch by adding video backgrounds that adjust automatically based on the device. B ...

Align the content to the center of the middle column using HTML

Is it possible to replicate Amazon's email structure using only HTML in the feedbackwhiz template editor? I want my content to be left-justified in the center column with white space on either side, similar to the Amazon email example provided. Amazo ...

Ensuring stackable columns are centrally aligned using justify-content-center

My goal is to create a responsive layout with x columns that display 3 columns per row on lg screen sizes, aligned using justify-content-between. When the screen size is smaller than lg, all x columns should stack vertically and be aligned using justify-co ...

Issue with highlighting when one string overlaps with another

I am facing a challenge with handling a string that contains Lorem Ipsum text. I have JSON data that specifies the start and end offsets of certain sections within the text that I need to highlight. The approach I am currently using involves sorting the JS ...

Is there a way to create a shadow effect using css?

I am attempting to replicate the subtle shadow effect displayed in the image. https://i.sstatic.net/fa7iB.png https://i.sstatic.net/YgY0W.png Struggling with implementing this shadow effect using CSS. I experimented with box-shadow: box-shadow: 0 3px 6p ...

What could be the reason for having two HTML nodes within a one-node HTML document?

My goal is to use DOMdocument to retrieve a list of HTML nodes in order to create a visually appealing CSS3 tree visualization on a web page. However, I've encountered an issue with the code snippet below: // Compressed, testing HTML $text = '&l ...

Why is my CSS selector automatically converted to uppercase in Internet Explorer?

I am facing an issue with my CSS file. Here is how it looks: /*mycss.css*/ body { margin: 0px; padding: 0px; } a:link { color: rgb(255, 255, 255); font-weight: normal; text-decoration: underline; } a:visited { color: rgb(255, 255, 255); font-weight: norm ...

Creating a dynamic process for assigning unique identifiers to objects in JavaScript

Struggling with JavaScript while working on a project in .Net. I am looking for a way to trigger a click on the 'generate' button that extracts data from the dropdown menu after the click event. I have a button named 'btn', which, whe ...

Adding and deleting fields with jQuery class manipulation

A form has been created for product sales. The admin has the capability to add fields for multiple products by clicking on the "Add" button using jQuery, and can remove fields by clicking on the "Remove" button. There is an issue with appending this us ...

Issue with STS 4.7: CSS Autocomplete feature not functioning properly in Spring Boot project

Currently working on a web application using Spring Boot and Thymeleaf as the template engine. I've stored all my CSS files in the "resource/static/css" directory. However, when attempting to edit an HTML file, STS does not provide suggestions for CSS ...

Experiencing difficulty aligning the Material UI grid to float on the right side

I'm currently in the learning phase of material-ui and encountering an issue with floating the grid content to the right side. Despite trying alignItems="flex-start" justify="flex-end" direction="row" in the container grid, as well as using the css p ...

Displaying information stored in a database as notifications in the notification icon within the HTML/PHP header

Within my MySQL database, there exists a table named order_detail. This table is populated with values from my android app. I am looking to display the order_id as a notification in my admin panel, which is built using HTML/PHP. The attributes of the orde ...

What are some other options besides HTML Tidy?

Having integrated HTML Tidy into my application to sanitize incoming HTML, I have encountered a plethora of bugs within the Tidy source code. The task of fixing these bugs directly in the source is nothing short of a nightmare, given that the code is an in ...

Issues arising with the styling of list items using custom images

I've run into an issue with my bullet list while trying to use an image instead of regular bullets for a class project. The image is not aligning properly with the list and seems to be embedded within the text. Here's the HTML code I have for th ...

An error was thrown: Unexpected identifier found within the headers of my fetch request

When I try to run the server, it runs successfully. However, my Chrome console shows errors in the headers and does not execute the "add to cart" functionality. I have refreshed the page multiple times and even restarted the server, but the issue persists ...

Retrieve the selected date from the date picker widget

Welcome to my custom datepicker! Here is the HTML code: <div class="field-birthday field-return" id="birthday-edit" style="display:none;"> <div class="birthdaypicker"></div> <input class="hidden" name="birthday" type="hidden" ...

Stop form from submitting on bootstrap input, still check for valid input

Encountering a dilemma here: Employing bootstrap form for user input and utilizing jQuery's preventDefault() to halt the form submission process (relying on AJAX instead). Yet, this approach hinders the input validation functionality provided by boots ...

Executing cssnano Using the Command Prompt

Although I'm not an expert in node JS, I have come across cssnano as a JavaScript tool for minifying CSS, which apparently does a more sophisticated job compared to the outdated YUI compressor. My only issue is that I am struggling to understand how t ...

Modify the color of the table map based on specific conditions in a React.js application

To modify the table entry's color based on the current balance, follow these conditions: If the current balance is less than 100, it should be shown in red. If the current balance is between 100 and 200, display it in yellow. Otherwise, show it in gre ...

Combining a Vuetify 2 toolbar and a navigation drawer, topped with an additional toolbar for added functionality

I am working towards achieving a layout similar to this: https://i.stack.imgur.com/M0rGl.jpg However, I currently have this setup: https://i.stack.imgur.com/VOGxJ.jpg The issue I am facing is that I am unable to position the first toolbar above the navi ...