Jump to content

Hide Logo and navigation from one page, but keep Shopping Cart?

Go to solution Solved by creedon,

Recommended Posts

Posted

I am trying to remove the logo, and if possible navigation links from this (and only this) page, while still allowing the shopping cart to pop up. Is this at all possible? Maybe I'm asking to much from rigging squarespace and need to learn to build a proper custom website lol.

https://www.herzbergdesign.com/kingcakebaby

@tuanphan You've written a lot of beautiful code to help the folks here, I'm wondering if you could help me out too!

  • Solution
Posted (edited)

Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. Please see per-page code injection.

<style>

  html:not( .squarespace-damask ) .ancillary-header-branding-position-top-left [ data-nc-base="header" ] [ data-nc-container="top-left" ][ data-nc-container ],
  html:not( .squarespace-damask ) .Header-nav,
  html:not( .squarespace-damask ) .ancillary-mobile-bar-branding-position-top-left [ data-nc-base="mobile-bar" ] [ data-nc-container="top-left" ][ data-nc-container ],
  html:not( .squarespace-damask ) .ancillary-mobile-bar-menu-icon-position-top-right [ data-nc-base="mobile-bar" ] [ data-nc-container="top-right" ][ data-nc-container ] .Mobile-bar-menu
  
    {
    
      display : none;
      
      }
      
  </style>

Let us know how it goes.

Edited by creedon
version 3

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

Actually, I think the old code was better. The new code doesn't let the shopping cart icon pop up on mobile, and on desktop it's not doing anything anymore.

I didn't save the old code snippet, any chance you still have it? Thank you again for all your help!

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.