HI - I am looking to change the button color to #fc9ed1 and the text color to #fbf7ef for all items that are coded to “background 2” color scheme. Any ideas? Thanks so much!
Topic summary
A user wants to customize button styling in the Refresh theme by changing the button color to #fc9ed1 and text color to #fbf7ef for all elements coded to “background 2” color scheme.
Initial Solution:
- Multiple responders suggested editing the
base.cssfile via Online Store → Theme → Edit code - Adding CSS targeting
.buttonwith the specified background and text colors
Follow-up Issue:
- The initial solution worked but created an unwanted button outline (screenshot provided)
Refined Solutions:
Two approaches were offered to remove the outline:
- Target
.color-background-2 .buttonwith!importantflags on background, color, and--alpha-button-backgroundproperties - Add
.button:afterstyling withbox-shadow: none
Both solutions involve appending CSS code to the bottom of the base.css file. The discussion remains open pending confirmation that the outline issue is resolved.
Please share your store url.
Hello @LeslieM
It’s GemPages support team and glad to support you today.
You can follow these steps:
-
Go to Online Store → Theme → Edit code
-
Open your base.css file and paste the following code below:
.button{
background-color: #fc9ed1;
color: #fbf7ef;
}
Let us know how it works for you.
Best regards,
GemPages Support Team
Hi @LeslieM
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
Hi @LeslieM ,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.color-background-2 .button {
background: #fc9ed1 !important;
color: #fbf7ef !important;
--alpha-button-background: #fc9ed1 !important;
}
Hope it helps!
@LeslieM To remove the outline of the button, you can add this code to the base.css file:
.button:after{
box-shadow: none;
}
Let us know how it works for you.
Best regards,
GemPages Support Team
