What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Issues with padding between 2 sections

Solved

Issues with padding between 2 sections

jasa11
Explorer
87 0 11

Hello,

So I recently purchased a new hero section for my page and i cant seem to make the padding work between the section and my header.

I adjusted all the section settings but theres only so much i can do. I want a code that would only target desktop so the image on my hero section wouldnt be so close to the header.

Its right at the start of my page, you'll see the head on the image is basically inside the header.

URL ; jasaoslaj.com

Mobile works perfectly fine.

Thanks!

Accepted Solution (1)

Rahul_dhiman
Shopify Partner
667 131 136

This is an accepted solution.

Hello @jasa11 
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->style.scss.css
add this code at the end of the file.

@media (min-width: 768px) {
body {
margin-top: 11rem !important;
}
}

result
4.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

View solution in original post

Replies 2 (2)

Rahul_dhiman
Shopify Partner
667 131 136

This is an accepted solution.

Hello @jasa11 
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->style.scss.css
add this code at the end of the file.

@media (min-width: 768px) {
body {
margin-top: 11rem !important;
}
}

result
4.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

Made4uo-Ribe
Shopify Partner
9159 2184 2700

Hi @jasa11 

Try this one. 

1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"

2. Find the theme that you want to edit and click on "Actions" and then "Edit code".

3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

<style>
@media (min-width: 1024px) {
    div#shopify-section-ss_hero_16_dFNWEL .section-ss_hero_16_dFNWEL {
        margin-top: 200px;
    }
}
</style>

 

And Save. 

Result:

Made4uoRibe_0-1728992207709.png

 

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.