For some reason these white boxes appeared around my add to cart text?
Thankyou guys
URL: Hygiadental.com
pw: melek
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:
theme.liquid before the </body> tag to override with background: unset !important;theme.csstheme.liquid before the </head> tagStatus:
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).
For some reason these white boxes appeared around my add to cart text?
Thankyou guys
URL: Hygiadental.com
pw: melek
Hello @Anonymous
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
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; }.focus-none span {
background: none !important;
}