Site logo

Archived topic

Error messages are not displayed

5 replies · Started by mickael on April 3, 2022

Viewing posts 1–6 of 6

Hello,

I'm connecting you because I customized the "My account" page with Elementor Pro.

On the login page, when I enter a wrong password or a wrong login, no error message is displayed. With Woocommerce support, we found a thread that seems to provide a solution (this problem is known to Elementor) : https://github.com/elementor/elementor/issues/8981#issuecomment-537971993

The proposed solution is to add this custom code:

// In your functions.php
function remove_storefront_notices(){
	remove_action('storefront_content_top', 'storefront_shop_messages', 15 );
}
add_action( 'wp_head', 'remove_storefront_notices' );

How to adapt this code for GeneratePress ? Is it enough that I replace "storefront" by "generatepress" or does this code need to be modified?

Also, Woocommerce support told me that the shortcode [woocommerce_messages] may be required with this snippet.

I use GeneratePress Pro.

Thanks for your help :)

Hi there,

It doesn't look like that code is theme-related so you shouldn't need to modify it at all.

Try adding it using one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/

If it doesn't work, can you test it with a Twenty series WP theme?

Hello Leo,

Thank you for your answer.
I copied the custom code using the Code Snippets plugin. I have activated the Twenty Twenty-Two theme.

I even disabled the Elementor login widget to use the native Woocommerce version.

The problem persists: the error messages do not appear when I enter an incorrect login or password.

I don't understand what could be the problem.

Do you have an idea or a way to solve this problem?

Thanks a lot

I don't unfortunately.

So the issue exists in a Twenty Twenty-Two environment?

In that case I would recommend checking with WooCommerce' support team.

Indeed, the problem persists with the Twenty Twenty-Two theme even after deactivating all plugins except woocommerce.

I will contact the support.

Thanks for your help.

No problem :)

This archived topic is closed to new replies.