Polylang
-
Hi,
I’m using the plugin with Polylang, which is like WPML.
The problem I have is that for the english version of the website (secondary language, french being the main one), the plugin doesn’t seem to “activate”.
What I mean by that is that the comment gets submitted and get redirected. If the user doesn’t fill in the fields, then there’s the error page, asking to fill in all the fields.Main site: https://www.fitforlife.fr
EN version: https://www.fitforlife.meI guess it’s because these are two different domains.
I’ve tried the hack you mentioned in a similar issue, by adding the following code for the ‘OnBeforeSelectElements’ callbackvar form = jQuery(dom).find(WPAC._Options.selectorCommentForm); var actionUri = new Uri(form.attr("action")); if (!(actionUri.getQueryParamValue("lang"))) { form.attr("action", actionUri.replaceQueryParam("lang", (new Uri(window.location)).getQueryParamValue("lang")).toString()); }
The other thing I’ve noticed is that for the english version, when the error message appears, it’s in French (should be in english).
Thank you!
- The topic ‘Polylang’ is closed to new replies.