google_translate_element
Permalink
When I place the google_translate_element ( Website Translator - Add Website ) shown below into my theme I get problems when editing the page. It seems that the ccm-highlighter is being pushed down for some reason so trying to edit is not possible.
Anyone have any thoughts what could be causing it as have tried it on the greek yoghurt theme as well with same results. Using version 5.6.0.1 and 5.5.2.1.
Anyone have any thoughts what could be causing it as have tried it on the greek yoghurt theme as well with same results. Using version 5.6.0.1 and 5.5.2.1.
<div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, 'google_translate_element'); } </script> <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
2. Put in the Template "default.php", "view.php" , ... this PHP Code:
<?php if ($_GET["ccm_token"] == "") $this->inc('elements/translate.php'); ?>
It works!