Jump to content

Help removing the mobile header from one page on the York template

Recommended Posts

Hello! I am working on this site: https://rectangle-gecko-tryt.squarespace.com (password is: test) This site uses the York template.

I am trying to remove the header/site title from the workbook page (https://rectangle-gecko-tryt.squarespace.com/gregprayworkbook).

I was able to do this with the following code:


#collection-5d5a22edb451b500013591da {
      header, footer, {
        display: none !important;}}

However, it still shows for the tablet and mobile breakpoints. We will be using a Personal Level account so we cannot inject this code into the individual page via the advanced settings. I have seen many posts on this site that use that solve but nothing that leverages the custom CSS for York.

Do any of you have any advice on how to fix this and remove the site title from the mobile breakpoints for this one page only?

Many thanks!

Link to comment
  • Replies 7
  • Views 1.3k
  • Created
  • Last Reply

@ChantelZP You want to remove header, or header & footer?

Mobile & table, you can use this CSS (Add to Home > Design > Custom CSS, All plans have this option).


/* Header for mobile, desktop */
.mobile-bar-wrapper {
   display: none;
}

If it doesn't work, use: display: none !important;

Reference: https://beaverhero.com/york-template-squarespace/

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@ChantelZP sorry, i didn't read carefully your question. Use this code


/* Header for mobile, desktop */
body#collection-5d5a22edb451b500013591da .mobile-bar-wrapper {
    display: none;
}

body#...da is Page ID. Each page will have different ID. You can replace body...da if you want to header for other pages. See how to find Page ID. https://beaverhero.com/squarespace-how-to/#HowtoFindPageID

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 8 months later...

@tuanphan

I'm trying to create a more flexible landing page than the cover page.  I found the following code which has been helpful in removing the navigation and header from this one page.  It worked for desktop view, but it still shows up on mobile.  

<style> #header { display: none } </style>

I tried using this code shared above on that one page and could not get it to work...any other ideas?  Thanks!

/* Header for mobile, desktop */
body#collection-5d5a22edb451b500013591da .mobile-bar-wrapper {
    display: none;
}
Link to comment
7 hours ago, TRC7 said:

@tuanphan

I'm trying to create a more flexible landing page than the cover page.  I found the following code which has been helpful in removing the navigation and header from this one page.  It worked for desktop view, but it still shows up on mobile.  

<style> #header { display: none } </style>

I tried using this code shared above on that one page and could not get it to work...any other ideas?  Thanks!


/* Header for mobile, desktop */
body#collection-5d5a22edb451b500013591da .mobile-bar-wrapper {
    display: none;
}

body#collection is Page ID. Each page has specific ID. See how to find Page ID.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.