Issue with wp.i18n on Homepage
-
Hi Woodmart Support,
I am experiencing a JavaScript error on the homepage of my website. When checking the browser console (F12 Dev Tools), I see the following error:
wp.i18n.setLocaleData({‘text direction\u0004ltr’:[‘rtl’]})
Uncaught ReferenceError: wp is not defined
This error seems to occur because the wp object is not defined when the script wp.i18n.setLocaleData is executed.
I am not sure what is causing this issue — it might be related to LiteSpeed Cache JS optimization, lazy loading, or a conflict with other plugins like Elementor or WooCommerce.
Could you please advise on how to fix this or provide a solution so that the wp.i18n script runs correctly?
Thank you for your help.
-
This topic was modified 1 day, 16 hours ago by
saeedshouman.
Hello,
Thank you so much for purchasing our theme and contacting our support center.
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
Please disable all plugins that are not related to our theme temporarily.
ok I have disabled all other plugins temporarily.
As we can see, most of the external plugins are still turned on.