[Mini Program] WeChat Mini Program cancels the title bar of the global or single page

1. Cancel all title bars:
add: navigationStyle: custom to the window in app.json. The top navigation bar will disappear, leaving the capsule button in the upper right corner

  "window": {
    
    
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#444",
    "navigationBarTitleText": "古诗猜谜",
    "navigationBarTextStyle": "white",
    "navigationStyle": "custom"
  },

2. Cancel the title bar of a single page:
add "navigationStyle": "custom" to the .json file of a certain page


{
    
    
  "usingComponents": {
    
    },
  "navigationStyle": "custom"
}

Related applet examples:
![Insert picture description here](https://img-blog.csdnimg.cn/89ccba83e9474b69b352a50372e314a1.png

Page: Customize the title and set the global background image

insert image description here

Guess you like

Origin blog.csdn.net/LuviaWu/article/details/118091112