https://charmente.com/products/v-back-flared-jumpsuit
I want there to be more space between “How It Looks!” and the stuff above it.
A user seeks to add spacing between a rich text heading (“How It Looks”) and the product media above it on their product page, but only on desktop devices.
Initial Solutions Provided:
base.css targeting .rich-text__heading or .inline-richtext h1 with margin adjustmentsDesktop-Only Solutions:
Several users provided media query-based CSS targeting desktop screens (min-width: 990px):
margin-top: 5rem !important to h2.rich-text__heading.rte.inline-richtext h1theme.liquid file before the </body> tag with @media screen and (min-width: 990px) wrapperStatus:
The discussion remains open with no confirmation from the original poster about which solution worked. Multiple valid approaches were offered using either base.css modifications or theme.liquid custom styling.
https://charmente.com/products/v-back-flared-jumpsuit
I want there to be more space between “How It Looks!” and the stuff above it.
Hi @Simon159 , Add the following code to base.css :
h2.rich-text__heading.rte.inline-richtext.h1 {
margin-bottom: 5rem !important;
}
@Simon159 Go to Online Store > Live Theme > Edit Code > search for base.css > search .isolate word(class) and add this css code margin-top: 50px;
and save the base.css file. That’s it!
that also affected mobile, i would like it to only affect desktop version of my site.
I want there to be more space between “How It Looks” and the media above it, which is the product description. That code made their be more space between “How It Looks” and the text below it.
@Simon159 , Add the following code :
@media(min-width:990px){
h2.rich-text__heading.rte.inline-richtext.h1 {
margin-top: 5rem !important;
}
}
@Simon159 Please add below code -
@media (max-width: 767px){
.isolate {
margin-top: inherit;
}
}
Please let me know if works!
Hello @Simon159
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Hello @Simon159 ,
Please add the below mentioned code for providing the space between product description & ‘How it Looks’ section.
Steps -:
Go to the “Online Store” → Themes and then click edit code https://prnt.sc/bMYhLWJhpAks
Now, Search for the theme.liquid file and open it.
Next, add the below mentioned code at the bottom of the file before tag.
Output will be like this = https://prnt.sc/grsqOCijS5Bt
I hope this helps you.
Please let me know if you have any query.
Thank you.