Shopify themes, liquid, logos, and UX
Hi guys,
Something weird is happening with the header on my Craft theme. I've tried a few "margin-bottom: -80px" code, but some will take spacing off the mobile view from the section below so I'm not sure where it's going wrong!
Then I added this code below, but it caused the other pages on desktop to be cut off at the top.
Any other solutions for this? Thanks!
@media (min-width: 749px) {
{
margin-bottom: -80px;
}
}
Hi @INFRA, Can you kindly share your store link with us? We will check it and suggest you a solution if possible.
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @INFRA,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
section#shopify-section-template--23441632330004__slideshow {
margin-top: 0 !important;
}
</style>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @INFRA ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
.section+.section {
margin: 0 !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
HEllo @INFRA
Go to online store ----> themes ----> actions ----> edit code---->base.css ----> line number 149
search this code and delete and then save.
.section + .section {
margin-top: var(--spacing-sections-mobile);
}
@media screen and (min-width: 750px) {
.section + .section {
margin-top: var(--spacing-sections-desktop);
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hello @INFRA
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.section+.section {
margin-top: 0 !important;
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025