JohnFleuron Posted November 16, 2022 Share Posted November 16, 2022 Hi, I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site. I have worked out I need to insert code into the Advanced Settings of the specific page and have used: <style> header, footer, mobile-bar {display:none !important; } </style> This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu. Is there anything I need to add to make the Menu disappear? Thanks in advance John Link to comment
Beyondspace Posted November 16, 2022 Share Posted November 16, 2022 5 hours ago, JohnFleuron said: Hi, I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site. I have worked out I need to insert code into the Advanced Settings of the specific page and have used: <style> header, footer, mobile-bar {display:none !important; } </style> This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu. Is there anything I need to add to make the Menu disappear? Thanks in advance John You can use the Css code with media query and target the page id if you only want to hide it on some pages. @nedia only screen and (max-width: 767px) { /*style on mobile*/ } The header navigation on mobile may be built with another Dom Element. Therefore, if you need help, you can share your site with protected password so we can take a look tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
tuanphan Posted November 21, 2022 Share Posted November 21, 2022 On 11/16/2022 at 4:35 PM, JohnFleuron said: Hi, I want to hide the Page Header (Logo and Navigation) for a specific number of pages within a site. I have worked out I need to insert code into the Advanced Settings of the specific page and have used: <style> header, footer, mobile-bar {display:none !important; } </style> This worked and hides the Page Header on a desktop machine but when I view it on a mobile the template still inserts a Menu. Is there anything I need to add to make the Menu disappear? Thanks in advance John Which template do you use or link to your site? We can check the code easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment