jpmonette
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Prevent redirection using language stored in cookieI have this in my custom plugin:
<?php add_filter('pll_redirect_home', 'no_home_redirection'); function no_home_redirection($redirect) { return false; } define(PLL_COOKIE, false);
Still doesn’t seem to be working. When I click on the link in the menu to reach the ENglish website, everything turns English and the URL contains “/en/”. If I go back at “https://example.com/”, I still have everything in English… There’s still a cookie somewhere storing the information.
Forum: Plugins
In reply to: [Polylang] Prevent redirection using language stored in cookieI replied to fast, it doesn’t seem to be working. I created the custom module you suggested me too and when I go at
https://example.ca/en/partners
(content in English) and typehttps://example.ca/partners
in the address bar, I am redirected to the English version.I have no idea how to fix this behavior…
Forum: Plugins
In reply to: [Polylang] Prevent redirection using language stored in cookieAnd how am I suppose to enable that? I added that to
functions.php
in my theme and it doesn’t seem to be working.add_filter('pll_redirect_home', 'no_home_redirection'); function no_home_redirection($redirect) { return false; }
EDIT:
I added the line in
polylang/polylang.php
and it seems to be working, no more unwanted redirection. Thanks!Forum: Plugins
In reply to: [Polylang] Prevent redirection using language stored in cookieSame problem for me (and same settings, Polylang 1.2 beta)
I’m using beta too, but I had the same issue previously with stable version.
Forum: Plugins
In reply to: [Polylang] Prevent redirection using language stored in cookieYes, I did enable the setting to hide the language when it’s the default one.
Here are my actual settings (if this can help troubleshoot):
https://i.imgur.com/9BHon34.png