Tagged: Cookie Consent, enfold
-
AuthorPosts
-
May 23, 2018 at 9:24 pm #961224
Hallo liebes Kriesi-Team,
ich habe Probleme mit der Cookie Consent Message.
Auf dem Smartphone (auf iOS und Android gestestet) erscheint der Cookie-Hinweis auf jeder Seite – auch wenn ich zuvor auf “Akzeptieren” klicke.Manchmal erscheint der Hinweis dann auf ein paar Seiten nicht, aber spätestens wenn ich wieder auf die Startseite gehe, fängt das wieder an mit dem Hinweis.
Am PC (mit allen gängigen Browsern) ist mit das auch schon aufgefallen, hier ist das Problem aber deutlich seltener.
Habt ihr eine Idee, was da falsch eingestellt ist?
Danke
FlorianMay 25, 2018 at 6:18 pm #962313Hey flocco21,
Could you please post in English?
That way we will be able to help you faster please.Thank you very much
Best regards,
BasilisJuly 20, 2018 at 9:08 am #987740Hi, I have the same problem.
We have a DE / EN page. First time i open one of the pages, I have to accept cookies. As long as i stay on same language pages, it works. Bust as soon as I switsch to the other languiage, I have to accept cookies agaibn. Also if i open the side again.
I already deletet all cookies in the browser, so that is not causing the errors.This happens on Smartphone, Desktop, Tablet,…
Could you help us?
July 20, 2018 at 11:08 pm #988072Hi,
Yes, you need to accept coockies again, because each language is recognized as a different cookie section,
That is how the law requires it.Best regards,
BasilisJuly 30, 2018 at 1:33 pm #991502Hi, Basilis,
yes I understand, that every language is different. But every time I switch from German to English or vice versa, the cookie for the other language seems to be deleted.
As long as I open the German side several times, I once accept cookies and it is ok.
But whenever I change to another language, I have to accept cookies again.Looks like it is caused by WPML and not by Enfold.
Greetings
World Relief GermanyJuly 31, 2018 at 10:15 pm #992098Hi,
Well, anything would change the Language would change the coockie, because it makes sense to use a different one.
Best regards,
BasilisAugust 2, 2018 at 6:32 pm #992955Hi,
how can I have different languages EN/DE for the cookies warning?
I use Polylang.
thanks
ANDYAugust 2, 2018 at 8:49 pm #992984Hey!
Probably the easiest solution is to use a custom shortcode. Add this code to your child theme functions.php file:
add_shortcode( 'polylang_cookie_message', 'avia_polylang_cookie_message' ); function avia_polylang_cookie_message() { $message = 'I agree to the terms and conditions laid out in the <a href="https://mywebsite.com/privacy/">Privacy Policy</a>'; $lang = pll_current_language('locale'); switch ($lang) { case 'en_GB': $message = 'I agree to the terms and conditions laid out in the <a href="https://mywebsite.com/privacy/">Privacy Policy</a>'; break; case 'de_DE': $message = 'Durch die Nutzung unserer Angebote erklären Sie sich mit dem Setzen von Cookies einverstanden. Mehr erfahren Sie in unserer <a href="https://mywebsite.com/datenschutz/">Datenschutzerklärung</a>.'; break; } return $message; }
and replace the message text strings with your custom text (you also need to adjust the privacy page urls). Maybe you also need to change the locale en_GB (i.e. to en_US).
Then go to Enfold > Theme Options > Privacy and insert this code into the “Provide a message which indicates that your site uses cookies.” settings field:
[polylang_cookie_message]
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.