Error messages
-
Hi,
I am trying to change the look of the Woocommerce error messages on the checkout page. I want them to be like a modal, fixed in the center of the screen, with a dark background. I have this CSS:
.woocommerce-error{ position:fixed; background: white; padding: 1rem; top:50%; left:50%; z-index:1000; } .woocommerce-NoticeGroup{ position:fixed; background: rgba(51, 51, 51, .5); top:0; left:0; height:100%; width:100%; z-index:999; }
and this works for the styling, but now the user cannot close the “modal”, so the dark background of the NoticeGroup is always visible. How can I turn it into a modal, so that when you click on any point of the screen the error message disappears and the background-color turns back to normal again?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error messages’ is closed to new replies.