What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Change Line Spacing Expanse Theme

Change Line Spacing Expanse Theme

kittenslim
Visitor
1 0 0

I'd like to adjust the line spacing on the Collection Page in the Expanse Theme. On the mobile, there is too much space between the Header and subheader, and too much space between paragraphs.

 

On the desktop, there is too much space between the Header and the Banner photo. 

 

Can anyone give me guidance on how to adjust this?  Thanks!

 

 

The mobile page has too much sIMG_4381.PNGScreenshot 2024-10-17 at 6.01.12 PM.png

Replies 3 (3)

PageFly-Amelia
Shopify Partner
626 165 237

Hi @kittenslim 

This is Amelia from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code. 

Step 2: Search file components.css

Step 3: Paste the below code at bottom of the file -> Save

 

at-rte.at-rte.rte.clearfix.rte--collection-desc.enlarge-text {

    padding-top: 10px;

}

#shopify-section-template--17343934136501__main-collection section-main-content {

    padding: 0;

}

@media (max-width: 767px){

at-rte.at-rte.rte.clearfix.rte--collection-desc.enlarge-text>h3 {

    margin: 25px 0;

}}

 

Hope that my solution works for you.

Best regards,

Amelia | PageFly

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


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


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

Tech_Coding
Shopify Partner
418 110 98

Hello @kittenslim 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media only screen and (min-width: 768px) {
    #shopify-section-template--17343934136501__collection-header section-main-content {
         padding-top: 22px !important;
     }
     .rte--collection-desc {
         padding: 0 !important;
     }
}
@media screen and (max-width:767px)
    .rte--collection-desc h2, h3 {
        line-height: 23px !important;
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }
    .rte--collection-desc {
       padding: 23px 0 !important;
    }
}
</style>

Desktop Result:

Tech_Coding_0-1729215407266.png

Mobile Result:

Tech_Coding_1-1729215833965.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

 

 

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

GTLOfficial
Shopify Partner
676 141 136

Hello @kittenslim 
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->component.css
add this code at the end of the file.

@media only screen and (max-width: 769px) {
.footer__section {
padding: 0px !important;
}
.rte--collection-desc {
padding: 20px 0;
}
.rte h3, {
margin-top: 30px;
}
}
@media only screen and (min-width: 769px) {
section-main-content {
padding-top: 0px !important;
}
}

result
3.png2.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh