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

Remove padding between header and collapsible conent

Solved

Remove padding between header and collapsible conent

peakclo
Excursionist
60 0 9

peakclo_0-1723467713590.png

How can I remove the space between the heading and the collapsable content for both mobile and desktop on Dawn theme. 

 

Accepted Solution (1)
Moeed
Shopify Partner
7764 2082 2567

This is an accepted solution.

Hey @peakclo 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.collapsible-row-layout .accordion summary {
    padding: 0 !important;
}
h2.collapsible-content__heading.inline-richtext.h2 {
    margin: 0 !important;
}
.collapsible-row-layout .accordion {
    margin-top: 1rem !important;
}

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 8 (8)

Moeed
Shopify Partner
7764 2082 2567

Hey @peakclo 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.accordion summary {
    padding: 0 !important;
}
h2.collapsible-content__heading.inline-richtext.h2 {
    margin-bottom: 1.5rem !important;
}
</style>

RESULT:

Moeed_0-1723468403770.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


peakclo
Excursionist
60 0 9

This worked great for desktop view but mobile view is still the same.

 

peakclo_0-1723472088162.png

 

Moeed
Shopify Partner
7764 2082 2567

This is an accepted solution.

Hey @peakclo 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.collapsible-row-layout .accordion summary {
    padding: 0 !important;
}
h2.collapsible-content__heading.inline-richtext.h2 {
    margin: 0 !important;
}
.collapsible-row-layout .accordion {
    margin-top: 1rem !important;
}

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


BSS-TekLabs
Shopify Partner
2401 695 836

Hello @peakclo 
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
peakclo
Excursionist
60 0 9
BSS-TekLabs
Shopify Partner
2401 695 836

- Here is the solution for you @peakclo 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.collapsible-row-layout .accordion {
    margin-top: 0 !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1723474460587.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
peakclo
Excursionist
60 0 9

Hi @BSS-TekLabs,

 

This sadly did not work. I followed your exact steps

 

peakclo_0-1723536552925.png

 

peakclo_1-1723536574844.pngpeakclo_2-1723536592984.png

 

BSS-TekLabs
Shopify Partner
2401 695 836

BSSTekLabs_0-1723537794744.png

 

You are missing a } on this line.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now