- This topic has 15 replies, 2 voices, and was last updated 5 years ago by David.
-
AuthorPosts
-
April 28, 2019 at 9:16 pm #882694yury
I’m not sure if there is a conflict between this theme and woocommerce but some of my woocommerce buttons are a different background making the text on it impossible to see.
Example:
https://www.onbiz.com/cart/?add-to-cart=16922 (the Update Total button as an example)April 29, 2019 at 5:20 am #883037DavidStaffCustomer SupportHi there,
the Update Cart Button is greyed out as a unclickable element until a change is made to the cart.
April 29, 2019 at 5:37 am #883052yuryYes I figured that but thought it was sort of a bad user experience when the user doesn’t even know what that button is because he can’t see the text on it right away
April 29, 2019 at 6:18 am #883095DavidStaffCustomer SupportThe styling comes from the standard Woocommerce style sheet, the theme doesn’t interfere with how it behaves. This is the CSS rule it uses and those selectors can be used to overwrite it:
.woocommerce #respond input#submit.disabled, .woocommerce #respond input#submit:disabled, .woocommerce #respond input#submit:disabled[disabled], .woocommerce a.button.disabled, .woocommerce a.button:disabled, .woocommerce a.button:disabled[disabled], .woocommerce button.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce input.button.disabled, .woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { color: inherit; cursor: not-allowed; opacity: .5; padding: .618em 1em; }
Is there a particular style you would want? We can assist with changing it. Let me know.
April 30, 2019 at 6:05 pm #885001yuryYes. Do you know how I can change the background color to the same color gray when you hover over it?
Thank you
May 1, 2019 at 3:00 am #885273DavidStaffCustomer SupportFor the disabled button? You would need to use this CSS:
.woocommerce #respond input#submit.disabled:hover, .woocommerce #respond input#submit:disabled:hover, .woocommerce #respond input#submit:disabled[disabled]:hover, .woocommerce a.button.disabled:hover, .woocommerce a.button:disabled:hover, .woocommerce a.button:disabled[disabled]:hover, .woocommerce button.button.disabled:hover, .woocommerce button.button:disabled:hover, .woocommerce button.button:disabled[disabled]:hover, .woocommerce input.button.disabled:hover, .woocommerce input.button:disabled:hover, .woocommerce input.button:disabled[disabled]:hover { background-color: #2f4468; opacity: 0.5; }
May 1, 2019 at 5:45 am #885429yuryI put that code in additional css but it didn’t do anything
May 1, 2019 at 5:51 am #885432DavidStaffCustomer SupportCan you remove the CSS and add it at the very top of the Additional CSS
May 1, 2019 at 5:55 am #885437yuryJust tried that – same thing
May 1, 2019 at 5:56 am #885439DavidStaffCustomer SupportLooks good to me – try clearing your browser cache.
May 1, 2019 at 6:07 am #885454yuryI’ll try a different computer – don’t see any color difference on my desktop or phone after clearing cache
May 1, 2019 at 7:00 am #885626DavidStaffCustomer SupportOk, let us know – i tested it locally and its working.
May 1, 2019 at 6:55 pm #886049yuryTried on different computers and still see the same color grayed out box.
See here:
https://ibb.co/zPH7vRHMay 2, 2019 at 1:26 am #886230DavidStaffCustomer SupportSorry i thought that you wanted the color to be the same as when it was hovered on.
The two sets of CSS i provided above, you can change thebackground-color: #xxxxxx;
and opacity to whatever you want.May 2, 2019 at 2:50 am #886306yuryI think there was some miscommunication with what I wanted but I tinkered with your code and made some edits and got it working the way I wanted:
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled[disabled] {
background-color: #D3D3D3;
opacity: 0.5;
}Thank you for the help
-
AuthorPosts
- You must be logged in to reply to this topic.