white box obstruction on featured collection

Topic summary

A Shopify store owner encountered white boxes appearing around β€œadd to cart” text on their featured collection page at Hygiadental.com.

Root Cause:
Multiple respondents identified the issue as CSS styling applied to .focus-none span elements, specifically background: #ffffff !important; creating unwanted white backgrounds.

Proposed Solutions:
Three different approaches were suggested:

  • Option 1: Add custom CSS in theme.liquid before the </body> tag to override with background: unset !important;
  • Option 2: Locate and remove the problematic CSS rule directly from theme.css
  • Option 3: Add override code in theme.liquid before the </head> tag

Status:
The discussion appears resolved with multiple working solutions provided. Screenshots were shared showing the before/after results. All solutions target the same CSS property but differ in implementation method (override vs. removal).

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

For some reason these white boxes appeared around my add to cart text?
Thankyou guys

URL: Hygiadental.com

pw: melek

1 Like

Hello @Anonymous

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

#collection-template--17256407892068__featured_collection_H7aarU .focus-none span { background: unset !important; }

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

Hello @Anonymous
We have Checked Your Its some CSS issue
Go to online store > select theme > edit code > theme.css

.focus-none span {
  background: #ffffff !important;
}

Search and remove this CSS code

See this

Hello @Anonymous ,
This is occur because of some css.
.focus-none span {
background: #ffffff !important;
}
you can remove or overwrite this css.

goto shopify admin.
Edit code of your theme.

and paste the code

body #MainContent.focus-none span { background: unset !important; }

  • Then find the theme.liquid file.
  • add this code above tag:
.focus-none span {
    background: none !important;
}
  • Here is the result you will achieve:

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.