Shopify themes, liquid, logos, and UX
https://charmente.com/products/long-sleeve-flared-bodysuit
I only want to increase the space between the main menu and the product on desktop. The spacing is how I want it for mobile. Thank you!
Solved! Go to the solution
This is an accepted solution.
Go to Online store > Themes > Edit code > open theme.liquid, add this code below after <head>
{%- if template.name == 'product' -%}
<style>
@media (min-width: 990px) {
#MainContent {
margin-top: 40px !important;
}
}
</style>
{%- endif -%}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hello @Simon159
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>
.product.product--small {
margin-top: 25px;
}
</style>
This is an accepted solution.
Go to Online store > Themes > Edit code > open theme.liquid, add this code below after <head>
{%- if template.name == 'product' -%}
<style>
@media (min-width: 990px) {
#MainContent {
margin-top: 40px !important;
}
}
</style>
{%- endif -%}
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025