Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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!
Solved! Go to the solution
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
If this was helpful, hit the like button and accept the solution.
Thanks
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
If this was helpful, hit the like button and accept the solution.
Thanks
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:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024