How can I adjust the bottom padding on a collection list?

Topic summary

Goal: Adjust spacing around a collection list on the Shopify Ride theme homepage so it looks correct on desktop and mobile.

Proposed fixes (CSS = Cascading Style Sheets):

  • Add CSS in base.css with a media query to change spacing for a specific section ID, e.g., setting margin-top: 0 on #shopify-section-template–21376786661720__rich_text_LV93xw.
  • Use Theme settings → Custom CSS to apply: #shopify-section-template–21376786661720__rich_text_LV93xw { margin-top: 0px !important; }.

Issue encountered:

  • The change “works” visually but cannot be saved via the Theme settings → Custom CSS. Another participant reproduced the same save error.

Workaround provided:

  • Insert a Custom Liquid section on the homepage and place the CSS there; saving succeeded in a demo store. Video guides were shared for both adding Custom CSS and adding a Custom Liquid section.

Notes:

  • Shared code targets margin-top (removing space above the section) rather than explicitly adding bottom padding; this may differ from the original request to increase bottom padding under the collection list.

Status: Workaround proposed; no final confirmation from the requester. Images/screenshots illustrate the spacing issue and the save error; code snippets are central to the solution.

Summarized with AI on January 3. AI used: gpt-5.

Hi @atm19 ,

Hope you are doing well.

For your Shopify store, one of the way to remove the padding is using the custom CSS option from the Shopify store’s theme settings page. Here are the steps to do it -

  1. Go to your Shopify admin > Online Store> Themes
  2. Click on the customize button for current theme
  3. From left menu panel, select the theme settings
  4. Scroll down to Custom CSS section and enter following CSS code -
#shopify-section-template--21376786661720__rich_text_LV93xw {
margin-top:0px !important;
}

Here is a demo video for adding Custom CSS from Theme settings for Shopify store - https://youtu.be/nPja-jHwmPc

Please let me know if more details are needed.

Thanks & Regards,

Scale-up Print