Changing the background color on buttons in a text-with-image section

Topic summary

A user is experiencing an issue where a button’s background color appears more opaque than intended in an image-with-text section, likely due to conflicting CSS styling.

Root Cause:
The problem stems from existing CSS code that applies reduced opacity to buttons with the aria-disabled=true attribute, making them appear faded.

Proposed Solutions:
Two community members provided similar CSS fixes:

  • Solution 1: Navigate to Shopify Admin → Online Store → Themes → Edit code → Assets folder → locate the main CSS file (base.css, style.css, or theme.css). Add the following code at the bottom:
button[aria-disabled=true] {
  opacity: 1;
}
  • Solution 2: Go to Online Store → Theme → Edit code → open theme.liquid file. Insert before </body>:
<style>
.button[aria-disabled=true]{
  cursor: pointer !important;
  opacity: 1.5 !important;
}
</style>

Both solutions override the opacity setting to restore the button’s intended appearance. The issue remains unresolved as the original poster has not confirmed which solution worked.

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

Hello! I want to change the background color of the button on this image-with-text section but it seems like there is conflicting styling that is causing the button background color to be more opaque than intended. How can I fix that?

https://tr-healthy-bites.myshopify.com/
MoonRooster711!

1 Like

Hi @MoonRoosterLLC

Seems like you add some code to have an opacity for the buttons. And also let the cursor not allowed to the buttons.

I only change the opacity in the image with text button.

Check this one.

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:

.button[aria-disabled=true] {
    opacity: 1;
}

And Save.

Result:

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

1 Like

Hello @MoonRoosterLLC

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.button[aria-disabled=true]{ cursor: pointer !important; opacity: 1.5 !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

1 Like