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:
1 Like
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.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
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!
1 Like
Hey there @skatersweb I did a little research for you and I was able to find these steps that I think you should try
- Type your text and style it in the HTML editor (https://html-online.com/editor/), then copy the source code
- go to Shopify text editor and click on <> (show HTML) button,
- Paste the source code.
- Save.
Let me know if it works for you!
1 Like
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
1 Like
This worked, thank you to you and everyone who helped!
This worked thank you very much!