- This topic has 9 replies, 2 voices, and was last updated 4 years, 9 months ago by
Elvin.
-
AuthorPosts
-
March 13, 2016 at 5:45 pm #179058
Joanne Smith
Hey — thought I’d share how I changed the COLOURS of my WooCommerce Add to Cart buttons and price
install Custom CSS plugin
then paste the following code and adjust colours where suits!!
.product-categories .children { margin-left: 1.5em; padding-top: 5px; } .product-categories .children li:last-child { padding-bottom: 0; } .woocommerce #content input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover { background-color:#FC0 !important; color:white !important; text-shadow: transparent !important; box-shadow: none; border-color:#FF9900 !important; } .woocommerce #content input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce-page #content input.button:hover, .woocommerce-page #respond input#submit:hover, .woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover { background-color:#FC0 !important; color:white !important; text-shadow: transparent !important; box-shadow: none; border-color:#FF9900 !important; } .woocommerce #content input.button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce-page #content input.button, .woocommerce-page #respond input#submit, .woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button { background-color:#FC0 !important; color:white !important; text-shadow: transparent !important; border-color:#FF9900 !important; } .woocommerce #content input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover { background-color:#FC0 !important; box-shadow: none; text-shadow: transparent !important; color:white !important; border-color:#FF9900 !important; } .woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price { text-align: center; color: #F00; /* This is what you MAY want to change color */ font-weight: 200; font-size: 1em; } .woocommerce div.product span.price, .woocommerce div.product p.price, .woocommerce #content div.product span.price, .woocommerce #content div.product p.price, .woocommerce-page div.product span.price, .woocommerce-page div.product p.price, .woocommerce-page #content div.product span.price, .woocommerce-page #content div.product p.price { color: #F00; /* Change this */ font-size: 1.25em; text-align: center; }-
This topic was modified 10 years ago by
Tom.
March 13, 2016 at 7:36 pm #179072Tom
Lead DeveloperLead DeveloperThanks for sharing! 🙂
March 13, 2016 at 7:55 pm #179074Joanne Smith
I have seen a lot of threads in forums about how to do this — some of the plugins out there do not work!–best to custom CSS it!
J
May 11, 2016 at 4:14 pm #193627mc208
Does there need to be a css plugin, or can we just add any custom css we need to a child theme css file? Or does GP not support child theme?
May 11, 2016 at 10:17 pm #193663Joanne Smith
yes
add a custom css plugin and then add the code and style to suit
J
June 7, 2016 at 1:16 pm #200108mc208
Alllll of that CSS is just for the add to cart buttons and price display? Wow.
June 8, 2016 at 12:08 am #200200Tom
Lead DeveloperLead DeveloperYup, WooCommerce could definitely simplify it. Maybe one day.
June 17, 2021 at 12:23 am #1824963Jason
Is there a newer way now with GP pro?
June 17, 2021 at 12:23 am #1824964Jason
my buttons font won’t change, I can’t seem to find the font style. or even the button width?
June 17, 2021 at 12:33 am #1824973Elvin
StaffCustomer SupportHi Jason,
You can try Enabling GP Premium’s Colors module and try playing around with the settings on Appearance > Customize > Colors > WooCommerce.
-
This topic was modified 10 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.