Jump to content

Custom sidebar navigation affecting editor mode

Recommended Posts

Hi! 

I'm working on a sidebar navigation for my site (https://voxpopuligallery.squarespace.com/), but I'm noticing that the custom css I'm using to make the menu 100vh is also pushing down some of the section buttons in Editor Mode. 

This isn't affecting how the site looks, and I'd probably get used to it in the back end, but it might be confusing for my client to try and navigate. Is there any way to keep the sidebar navigation a fixed 100vh bar and have all page content 'ignore' that top margin?

Thanks so much!

Screen Shot 2024-07-16 at 11.05.00 PM.png

Link to comment
2 hours ago, slaterm said:

Hi! 

I'm working on a sidebar navigation for my site (https://voxpopuligallery.squarespace.com/), but I'm noticing that the custom css I'm using to make the menu 100vh is also pushing down some of the section buttons in Editor Mode. 

This isn't affecting how the site looks, and I'd probably get used to it in the back end, but it might be confusing for my client to try and navigate. Is there any way to keep the sidebar navigation a fixed 100vh bar and have all page content 'ignore' that top margin?

Thanks so much!

Screen Shot 2024-07-16 at 11.05.00 PM.png

Use the following selector to apply your custom CSS only on client side, not on edit mode

body:not(.sqs-edit-mode) your old selector {
  /*your style*/
}

Hope it can help

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

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.