Jump to content

How can I move the first section on my home page below the header?

Recommended Posts

Hi. Can you setup password & share url? Your site is private.

You can also try add this code to Home > Design > Custom CSS

body.homepage #page section:first-child {
	margin-top: 20px;
}

Adjust 20 to another number

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
  • 4 months later...

I tried this on my mobile site but it doesn't seem to move the headline (first section) down. Does anyone have a solution? My site is vibemade.com, and I have separate mobile homepage vibemade.com/mobile

I'm attaching the editor view which shows the image is much taller. It's extra annoying because on device when I scroll down and quickly come back up, I can see on iOS that there's part of the image that's getting hidden under the top nav.

Screen Shot 2021-05-11 at 11.19.43 PM.png

Link to comment
On 5/12/2021 at 10:21 AM, vibemade said:

I tried this on my mobile site but it doesn't seem to move the headline (first section) down. Does anyone have a solution? My site is vibemade.com, and I have separate mobile homepage vibemade.com/mobile

I'm attaching the editor view which shows the image is much taller. It's extra annoying because on device when I scroll down and quickly come back up, I can see on iOS that there's part of the image that's getting hidden under the top nav.

Add to Design > Custom CSS

/* Move down top image */
@media screen and (max-width:767px) {
[data-section-id="609b461aebc9b414a36f72c2"] {
    margin-top: 100px;
}
}

 

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
14 hours ago, tuanphan said:

Add to Design > Custom CSS


/* Move down top image */
@media screen and (max-width:767px) {
[data-section-id="609b461aebc9b414a36f72c2"] {
    margin-top: 100px;
}
}

 

That worked, thanks!

@tuanphan — how can I make it work for all widths of the site?

Link to comment
11 hours ago, vibemade said:

@tuanphan Yes!

Use this new code

/* Mobile - Move down top image */
@media screen and (max-width:767px) {
[data-section-id="609b461aebc9b414a36f72c2"] {
    margin-top: 100px;
}
}
/* tablet */
@media screen and (max-width:991px) and (min-width:768px) {
[data-section-id="609b461aebc9b414a36f72c2"] {
    margin-top: 150px;
}
}
/* desktop - Move down top image */
@media screen and (min-width:992px) {
[data-section-id="609b461aebc9b414a36f72c2"] {
    margin-top: 100px;
}
}

You can adjust values ;)

Also, do you need to fix this?

(Tablet-Blog posts) Increase content width?

vibemade.com-02-min.png

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
On 5/18/2021 at 5:28 AM, vibemade said:

@tuanphan would love to — hadn't caught that! 

Add to Design > Custom CSS

/* Tablet blog width */
@media screen and (max-width:1024px) and (min-width:768px) {
.blog-item-inner-wrapper {
    width: 95% !important;
}
}

 

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
  • 5 weeks later...
On 5/17/2021 at 11:37 AM, tuanphan said:

/* desktop - Move down top image */ @media screen and (min-width:992px) { [data-section-id="609b461aebc9b414a36f72c2"] { margin-top: 100px; } }

@tuanphan how do you find the data section ID? I'm trying this on desktop size and it's not working 😞 

Link to comment
5 hours ago, vibemade said:

@tuanphan how do you find the data section ID? I'm trying this on desktop size and it's not working 😞 

Use this tool https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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

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.