Skip Navigation

This topic contains 0 Antworten, has 1 Teilnehmer.

Last updated by maxL-15 vor 1 year, 1 month.

Assigned support staff: Raja Mohammed.

Author Artikel
September 16, 2019 um 9:23 am

maxL-15

I already put the different widgets of tawk.to (all languages) in the script:
<?php

$current_language_code = apply_filters( 'wpml_current_language', null );
if($current_language_code == 'en'):
?>
<script>
//javacode for English script here
</script>

<?php
elseif($current_language_code == 'fr'):
?>
<script>
// javascript code for French
</script>

<?php
elseif($current_language_code == 'nl'):
?>

<script>
// javascript code for Dutch
</script>
<?php
endif;
?>

It looked like it worked for a little while. But unfortunately now going to crystal-coloidal.es shows nl and by reloading French, and for crystal-kolloiden.de it shows spanish or Dutch?

I tried entering the code again and clearing the entire cache everywhere, but it still seems like it is not resolved.

Does someone knows how to fix this? OR what is causing the issue?

September 16, 2019 um 10:37 am