padding around button in mobile mode

Solved

padding around button in mobile mode

ellacoker
Shopify Partner
283 1 72

hello,

i would like to add padding above this button to seperate it out from the text a little. what code can i use for this? thank you.

ella.

URL: https://admin.shopify.com/store/wss10u-is/themes/175807824166/editor?previewPath=%2Fproducts%2Fheart...

PW: ellacoker

Screenshot 2025-01-31 at 14.34.29.png

Accepted Solution (1)

LizHoang
Shopify Partner
1251 159 195

This is an accepted solution.

Hi @ellacoker 

 

You can follow this instruction:

1. Go to Shopify > Theme > Customize

2. Copy and paste this code on Theme settings > Custom CSS section

.rich-text__buttons.scroll-trigger.animate--slide-in {
    padding-top: 50px !important;
}

 

Result : 

LizHoang_0-1738304263301.png

 

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

View solution in original post

Replies 6 (6)

ChiragPatel2911
Shopify Partner
57 10 9

Hello @ellacoker 

 

You can add a custom CSS under your theme file.

Go to the Online Store -> Edit your theme code and find the base.css

@media(max-width:768px){
.rich-text--full-width .rich-text__buttons {
padding-top: 20px;
}
}

 

Add this CSS at the end of that base.css file and save it. I hope that works for you.

Best Regards,
Chirag Patel (COO - Cirkle Studio PVT LTD)
chirag@cirklestudio.co

theycallmemakka
Shopify Partner
1806 437 471

Hi @ellacoker ,

 

I have written custom CSS for this solution. Please follow below steps and let me know your feedback.

 

Note: As you are using a square image as a cover image, the height of the image will be quite large to display all the images. The height of the section will be equal to the width of the screen. For optimum results, I recommend using a rectangular image.

 

Follow these Steps:

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

4) Add the following code just above tag </body>

<style>
section#shopify-section-template--24209589993766__rich_text_C8dtF9 a.button.button--secondary {
    margin-top: 15px;
}
</style>

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

ellacoker
Shopify Partner
283 1 72

thank you so much! this worked perfectly.

ChiragPatel2911
Shopify Partner
57 10 9

@ellacoker 

Hello @ellacoker 

 

You can add a custom CSS under your theme file.

Go to the Online Store -> Edit your theme code and find the base.css

@media(max-width:768px){
.rich-text--full-width .rich-text__buttons {
padding-top: 20px;
}
}

 

Add this CSS at the end of that base.css file and save it. I hope that works for you.

Best Regards,
Chirag Patel (COO - Cirkle Studio PVT LTD)
chirag@cirklestudio.co

LizHoang
Shopify Partner
1251 159 195

This is an accepted solution.

Hi @ellacoker 

 

You can follow this instruction:

1. Go to Shopify > Theme > Customize

2. Copy and paste this code on Theme settings > Custom CSS section

.rich-text__buttons.scroll-trigger.animate--slide-in {
    padding-top: 50px !important;
}

 

Result : 

LizHoang_0-1738304263301.png

 

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
ellacoker
Shopify Partner
283 1 72

Thank you Liz, this is great!