Afternoon shopify community!
I have a few issues with the colouring on some of my shop pages. I have been using CSS code to change some things but these ones I just cant seem to get around. Maybe someone here is a bit better and could help me with this.
Here are my problem pages:
red = #EC0000
black = #000000
- So for all of my individual product pages they have these white variant boxes and a white “add to cart” button. I would like the variant buttons to be a black box, red outline and red writing BUT when someone selects a variant for it to then switch to red box, black outline and black writing. The “add to cart” box needs to be a black box, red outline and red tex. It would be a bonus if when a new product (and page from it) is created that these settings then follow it.
- For peoples account address page the “cancel” box is white and so are the “edit” and “delete” boxes. I would like these to be a black box, red outline and red text. Crucially for this one if a new address is added I need these settings to be applied when the new address has been created and added to this sheet as not to break the emersion of the theme.
- When I select my policy pages from the footer they show up as black and white even when the page has been edited with CSS code as you can see on the left.
Thank you,
Lewis
1 Like
Hi @Lewcidity
We only change the policy page and the buttons on the page product, for the address and the customer side we can change that one but it would be base in your shopify plan.
For the mean time this is the polict page.
- 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:
main#MainContent {
background: black;
}
.shopify-policy__container * {
color: #EC0000;
}
And for the product page.
Same Instruction.
.product-form__input input[type=radio]:checked+label {
background: #ec0000;
color: black !important;
}
.product-form__input input[type=radio]+label {
background: black;
border: 1px solid #ec0000;
}
quantity-input.quantity {
background: black;
border: 1px solid #ec0000;
}
button#ProductSubmitButton-template--16244819460254__main {
background: black;
border: 1px solid #ec0000;
}
Result:
I hope it help.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
hi @Made4uo-Ribe ,
Thank you so much for your response once again!
Everything is all good apart from the last one:
This is how it looks for me after copying the code provided.
Thank you,
Lewis
1 Like
Can you put some important on the code.
.product-form__input input[type=radio]:checked+label {
background: #ec0000 !important;
color: black !important;
}
.product-form__input input[type=radio]+label {
background: black !important;
border: 1px solid #ec0000 !important;
}
Like this.
I hope it help.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
Hi @Made4uo-Ribe
You’re out here saving small businesses my friend.
I can’t promise this will be the last time I need your help (lol) but you have been an absolute life saver.
Thank you so much,
Lewis