I need help inverting the colors of the button in my contact page, i want the background of the button to be white and the text to be black
store- blissbloom.shop
A user seeks to invert button colors on their contact page—changing the background to white and text to black.
Two CSS solutions provided:
Targeted approach: Add specific CSS to the end of base.css file:
#ContactForm .contact__button .button!important flagsBroader approach with hover states: Add CSS via Theme Customizer’s Custom CSS section:
.contact-form button, submit inputs)Status: The issue remains open—the original poster has not confirmed which solution worked or if the problem is resolved. Both solutions use CSS overrides with !important declarations to ensure the styling takes precedence.
I need help inverting the colors of the button in my contact page, i want the background of the button to be white and the text to be black
store- blissbloom.shop
@blissbloomaesthetic please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css
#ContactForm .contact__button .button {background: #fff !important; color: #000 !important;}
Hi @blissbloomaesthetic You can do this by adding a little CSS override. Go to Online Store → Customize → Theme settings → Custom CSS and paste the code below:
.contact-form button,
.contact-form input[type=“submit”],
button[type=“submit”] {
background-color: #ffffff !important; /* white background /
color: #000000 !important; / black text */
}
.contact-form button:hover,
.contact-form input[type=“submit”]:hover {
background-color: #000000 !important; /* black background /
color: #ffffff !important; / white text */
}