Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Every page, from product pages to blog posts, no longer has any spacing between titles or paragraphs (image attached). Is there something wrong with the code that I can change to give proper spacing across the entire website?
Thank you!
Link: https://skatersedgecanada.com/
Example:
Solved! Go to the solution
This is an accepted solution.
Hello @skatersweb
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
h2 {
padding-bottom: 2rem !important;
}
h3, {
padding-bottom: 1rem !important;
}
p {
padding-bottom: 1rem !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @skatersweb
Yes, it is possible, but it depends on which headers you would like to add. In the code, there is a default header size applied across the entire website.
If you want to add all spaces in all headers smallest to biggest header size you can use this.
h1, h2, h3, h4, h5, .h0, .h1, .h2, .h3, .h4, .h5 {
padding: 2rem 0;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
This worked thank you very much!
Hey there @skatersweb I did a little research for you and I was able to find these steps that I think you should try
1. Type your text and style it in the HTML editor (https://html-online.com/editor/), then copy the source code
2. go to Shopify text editor and click on <> (show HTML) button,
3. Paste the source code.
4. Save.
Let me know if it works for you!
This is an accepted solution.
Hello @skatersweb
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
h2 {
padding-bottom: 2rem !important;
}
h3, {
padding-bottom: 1rem !important;
}
p {
padding-bottom: 1rem !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
This worked, thank you to you and everyone who helped!
Happy to help you...!!!