Using CSS How Do I Change Light Gray Around Section To Dark Gray On Ride Theme

Topic summary

A user wants to change the light gray border around a section to match the dark gray background color behind the text using CSS on the Ride theme.

Solutions Provided:

  • Section-specific fix: Add CSS code targeting the specific section ID (div#shopify-section-template--15836323741761__image_with_text_8CQYtm) with background: #6b6b6b; to the theme’s CSS file (base.css, style.css, or theme.css). This only affects that particular section.

  • Alternative approach: Another responder suggests adding custom CSS to theme.liquid above the </head> tag, though the specific code wasn’t fully visible in the conversation.

Status: Multiple solutions offered with step-by-step instructions for editing theme files through Shopify admin. The issue appears solvable through either method, pending user implementation and confirmation.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

I want to change the light gray border around the section to the same background-color that is behind the text using CSS.

This is how it should look:

Thanks,

Randal

1 Like

Hey @sharingsunshine

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

https://test-thp-store.myshopify.com/ efitsi

Thanks for the help!

Hi @sharingsunshine

If this section only you like to change?

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

div#shopify-section-template--15836323741761__image_with_text_8CQYtm {
     background: #6b6b6b;
}

And Save.

Result:

Or do you like to include this section also.

If it is add this one code, same instruction.

div#shopify-section-template--15836323741761__f1552b18-6017-4231-810d-74e61da22c37 {
     background: #6b6b6b;
}

And save.

Note: This code is only for the specific section, not for all the section.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi @sharingsunshine

This is Theodore from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the 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


Hope this can help you solve the issue

Best regards,

Theodore | PageFly