Jump to content

Unwanted spacing at the top of a product page

Recommended Posts

Site URL: https://star-vuvuzela-dpds.squarespace.com/store/p/one-year-fine-furniture


We have a problem with a space between our site's main menu and the beginning of page contents for some, but not all, of our pages. This includes product pages.

I thought I'd tracked this down (at least for the product pages) to an unnecessary padding-top on the outermost section element within the article element, and wrote a little javascript in the footer script to set the padding-top to just 1px. Sadly, some other code runs later that sets the padding-top back to a larger number. You can see this as the page loads - the content moves up briefly and then down again.

Any ideas? Any explanation of what Squarespace is up to would be gratefully appreciated.

The offending product page can be seen at https://star-vuvuzela-dpds.squarespace.com/store/p/one-year-fine-furniture (password = 'zinc')

Thanks in advance for any help with this!

- Dave

Edited by dcleal
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.