Remove some padding in mobile

Remove some padding in mobile

ellacoker
Shopify Partner
272 1 65

Hello,

There is a litte too much padding either side of my rich text in mobile, how can I remove some so that all of my text is on one line? I would also like to centre this specific text in mobile.

URL: https://www.livwithin.com.au/

PW: pewpog

Screenshot 2025-03-19 at 15.19.53.png

Replies 2 (2)

Dotsquares
Shopify Partner
390 25 52

Hi @ellacoker 

Thanks for reaching out shopify community.  here is set of css you can add to section-rich-text.css file

@media screen and (max-width: 749px){
	.page-width{
		padding: 0 20px !important;
	}
	.rich-text__wrapper.page-width{
		padding: 0 !important;
	}
}

 

Output:

 

Dotsquares_0-1742363188103.png

 

 

Dotsquares Ltd


Problem Solved? ✔ Accept and Like solution to help future merchants.


Shopify Partner Directory | Trustpilot | Portfolio

PageFly-Richard
Shopify Partner
5011 1120 1802

Hi @ellacoker 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media (max-width: 767px) {
#shopify-section-template--19130582892786__rich_text .rich-text__wrapper.page-width {
padding: 0 !important;
}
#shopify-section-template--19130582892786__rich_text h2 {
    font-size: 18px;
    text-align: center;
}
}
</style>

PageFlyRichard_0-1742366105715.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | 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) 


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