How to reduce the spacing between sections?

Solved

How to reduce the spacing between sections?

LSAccounting
Trailblazer
205 1 31

LSAccounting_0-1675332908947.png

I am looking to reduce the spacing between each section as when I add sections the spacing seems pretty major. I can't see an option for that in customise. Any other way this can be done? 

 

TIA 

 

Spark Theme

By L&S Team
Accepted Solutions (2)
PageFly-Kate
Shopify Partner
1373 375 428

This is an accepted solution.

Hi @LSAccounting ,

 

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/theme.css->paste below code at the bottom of the file:

.template-page .main #shopify-section-template--16721685020897__346ac8aa-f653-448a-a98f-4de6c539d5e9 ~ .shopify-section .section {
    margin: 60px 0 !important;
}

I hope it would help you
Best regards,

Kate | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


All features are available from the Free plan. Live Chat Support is available 24/7.


View solution in original post

GemPages
Shopify Partner
5625 1262 1288

This is an accepted solution.

Hello @LSAccounting 

I would like to give you the recommendation to support you so kindly follow steps below:

 

1. Go to your Online store > Themes > Edit code
2. Open your theme.liquid file
3. Paste the below code before </body>

<style>
.section,.page{
margin:30px 0 !important;
}
</style>

I hope the above is useful to you.
Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

Replies 13 (13)

oscprofessional
Shopify Partner
16407 2444 3195

@LSAccounting 

share the URL please

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
LSAccounting
Trailblazer
205 1 31
oscprofessional
Shopify Partner
16407 2444 3195

@LSAccounting ,

.collection-list.collection-list--columns-3.section {
    margin: 15px;
}

Add this css at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
LSAccounting
Trailblazer
205 1 31

@oscprofessional 

 

I could only see the difference using this code when it came to Collections List on my Home Page and other pages which contain that section. 

 

Unfortunately, I am looking for a code that will reduce spacing between all sections and not just one type. As the page I needed it for which is in the screenshot - did not change. I am also only really looking to have it applied to this page only. 

By L&S Team
PageFly-Kate
Shopify Partner
1373 375 428

This is an accepted solution.

Hi @LSAccounting ,

 

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/theme.css->paste below code at the bottom of the file:

.template-page .main #shopify-section-template--16721685020897__346ac8aa-f653-448a-a98f-4de6c539d5e9 ~ .shopify-section .section {
    margin: 60px 0 !important;
}

I hope it would help you
Best regards,

Kate | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


All features are available from the Free plan. Live Chat Support is available 24/7.


LSAccounting
Trailblazer
205 1 31

@PageFly-Kate 

 

Perfect! 

 

Is there a way of using this on other of my pages? i.e., changing the section template numbers in the code that you have used? Where have you found it? 

 

thank you!

By L&S Team
GemPages
Shopify Partner
5625 1262 1288

This is an accepted solution.

Hello @LSAccounting 

I would like to give you the recommendation to support you so kindly follow steps below:

 

1. Go to your Online store > Themes > Edit code
2. Open your theme.liquid file
3. Paste the below code before </body>

<style>
.section,.page{
margin:30px 0 !important;
}
</style>

I hope the above is useful to you.
Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
LSAccounting
Trailblazer
205 1 31

@GemPages 

 

Thank you! It did work. However, a bit too much. It was too close together and even when playing about with the margin numbers in your code, I wasn't seeing a difference in trying to make the gap a bit bigger. 

 

I would have used your solution if I have not of found one that fits my page better. 

 

Thank you!

By L&S Team
Subble
Visitor
1 0 0

if the gap is too much you just need to change the size. 

To change the size you change the numbers. For example in the code they gave you they used 30px. 

If you want it smaller change it to 10px, or even 0px for no gap.

jasonpurdy
Tourist
3 0 2

this worked for me, thanks! 

Topgaus
Visitor
1 0 0

Hi Everyone, none of these methods work for me... Can someone please help

vanessaarroyo
Tourist
3 0 1

Hi! I'm wondering if you resolved this issue? I'm encountering the same situation and the below replies didn't do anything. Thank you! 

LSAccounting
Trailblazer
205 1 31

@vanessaarroyo , Hi! How did you get on with it? 

 

2 of the above have worked for me. Although 1 better than the other. 

 

Read the comments I've put under each comment if you want to find out how they worked 😊

By L&S Team