Hello,
How can I reduce the distance between these buttons (“Custom content” sections) on my homepage on the mobile version?
Thank you for your assistance in advance.
https://www.yook92.com (password: 692)
Goal: Reduce vertical spacing between “Custom content” sections on the Palo Alto theme’s mobile homepage.
Context: The OP shared a mobile screenshot and store link (with password) showing large gaps between buttons/sections. An image is central to understanding the spacing issue.
Proposed solutions (both involve editing theme.css):
Technical note: A CSS media query applies styles only on specified screen sizes (here, mobile). Adjusting padding reduces the gap between sections.
Status: No confirmation from the OP yet; effectiveness and preferred padding values remain open. No conflicting viewpoints—both answers suggest the same method with different selectors and padding values.
Hello,
How can I reduce the distance between these buttons (“Custom content” sections) on my homepage on the mobile version?
Thank you for your assistance in advance.
https://www.yook92.com (password: 692)
Hi @YK92
This is Victor 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 theme.css
Step 3: Paste the below code at bottom of the file → Save
@media screen and (max-width: 767px){
.rich-text.rich-text–no-image.text-center {
padding: 0 !important;
}
}
Hope that my solution works for you.
Best regards,
Victor | PageFly
@media(max-width:767px)
.rich-text--no-image {
padding: 20px 0 !important;
}
You can manage padding as per your requirement.
Hope this works well.
Best Regards !