Plugin Author
edo888
(@edo888)
Hi,
Please post your website address and make sure GTranslate is added, so I can check the issue for you.
Thanks!
Thread Starter
mkdes
(@mkdes)
https://workcentre.com.pl/test-gtranslate/
On desktop works fine.
But if You check this on moble and open mobile menu – this not work.
-
This reply was modified 1 month, 1 week ago by
mkdes.
-
This reply was modified 1 month, 1 week ago by
mkdes.
Thread Starter
mkdes
(@mkdes)
Why gtranslate load float.js script twice?
<script src="/https://workcentre.com.pl/wp-content/plugins/gtranslate/js/float.js?ver=5.0.1" data-no-optimize="1" data-no-minify="1" data-gt-orig-url="/test-gtranslate/" data-gt-orig-domain="workcentre.com.pl" data-gt-widget-id="27936346" defer></script>
<script src="/https://workcentre.com.pl/wp-content/plugins/gtranslate/js/float.js?ver=5.0.1" data-no-optimize="1" data-no-minify="1" data-gt-orig-url="/test-gtranslate/" data-gt-orig-domain="workcentre.com.pl" data-gt-widget-id="53215236" defer></script>
-
This reply was modified 1 month, 1 week ago by
mkdes.
-
This reply was modified 1 month, 1 week ago by
mkdes.
Thread Starter
mkdes
(@mkdes)
Sorry I’m wasting Your time.
This was theme problem, because load two gtranslate containers with the same ID.
First container #gt-wrapper-18922207 is hidden – gtranslate select them and assign javascript events.
Second element with the same ID of course has no javascript events.
Anyway, I don’t understand why float.js is loaded many times.
-
This reply was modified 1 month, 1 week ago by
mkdes.
-
This reply was modified 1 month, 1 week ago by
mkdes.
Plugin Author
edo888
(@edo888)
Hi,
You are placing the language switcher multiple times, that is why you see multiple float.js loaded with different IDs.
I have tested with iphone safari and it is working fine for me, both selectors are working (mobile menu and content).
Thanks! π