Posted: October 27, 2015 at 10:39 am
Hi, I’ve looked everywhere in regards to the alert messages that appear during the shopping cart process when the cog appears, is there anywhere that these messages can be hidden or changed please? Thanks Kim. |
|
Hi there, Yes, they can be hidden or changed. If you have a specific alert message in mind, I can give you more information about how to change it or hide it. |
|
Its the 2 messages (1 green, 1 yellow) that pop up after payment about not refreshing the page while the payment goes through. The messages are too quick, and I feel my clients will think they have missed something. Is there someway to hide them or change the message so its maybe shorter, like “Please do not refresh your page” please? |
|
Hi Kim, Could you please let us know the payment option that you are using on your site? For example, Stripe or PayPal Pro. Thanks — |
|
We’re using Stripe. Thanks Lorenzo. |
|
Hi Kim, Add this CSS to your theme via its stylesheet or through a plugin like My Custom CSS or through a plugin like Reaktiv CSS Builder: div#espresso-ajax-notices-success { display: none !important; } The above will hide the success notices which are green. You can change the messaging in the yellow box by using the following gettext filter which can be added to your child theme’s functions.php file or via a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/): function ee_registration_checkout_adjust_messaging_do_not_refresh( $translated, $original, $domain ) { // This is an array of original strings // and what they should be replaced with $strings = array( 'Please wait while we process your registration.%sDo not refresh the page or navigate away while this is happening.%sThank you for your patience.' => 'One moment please. Your registration is being processed now! ', ); // See if the current string is in the $strings array // If so, replace its translation if ( isset( $strings[$original] ) ) { // This accomplishes the same thing as __() // but without running it through the filter again $translations = get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_registration_checkout_adjust_messaging_do_not_refresh', 10, 3 ); — |
|
Hi, I did want to mention that the following will suppress all green success messages: div#espresso-ajax-notices-success { display: none !important; } I’ve asked about an enhancement to simply hide that specific message by default. — |
|
Thanks Lorenzo. |
|
The support post ‘Alert messages ee4’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.