I'm trying to position the google translate box on a forum theme. I inserted the code in the index template file but need it to move to the right a bit more. I'm not sure what code I need to make it work.
screenshot or link? if you're using css to place your script just assign margin-left: 9999px; <<change the value to your need
Thanks Broxen It's a php file it is inserted in but not sure how to work it. Sorry,screenshot not uploading. Not allowed to post link either This is the code below; template_menu(); echo '<div id="google_translate_element"></div><script>'."\n"; echo 'function googleTranslateElementInit() {'."\n"; echo 'new google.translate.TranslateElement({'."\n"; echo 'pageLanguage: \'en\''."\n"; echo '}, \'google_translate_element\');'."\n"; echo '}'."\n"; echo '</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>'."\n"; echo ''."\n";
poor you try this code template_menu(); echo '<div id="google_translate_element"><script>'."\n"; echo 'function googleTranslateElementInit() {'."\n"; echo 'new google.translate.TranslateElement({'."\n"; echo 'pageLanguage: \'en\''."\n"; echo '}, \'google_translate_element\');'."\n"; echo '}'."\n"; echo '</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></div>'."\n"; echo ''."\n"; PHP: on your forum theme's css add this id: #google_translate_element {margin-left:50px} PHP: hope that's help..
actually that's simple things. your default code open and close <div> at the same line.. just move the </div> to the end of script and put a configuration on css file. that's will always work
Hi, I am a newbie and know a little about html. I am adding a widget on my HTML website of Twitter and a Facebook Badge.. I have succefully addedthem and they are working..The only problem is the Twitter widget seems to be a script code and I cannot align it either left or right or have the Facebook badge next to it? I have tried to put them next to each other but can't figure it out? I can align the facebook badge wherever as it's a normal html code, but I can't figure out the Twitter which is a script!!! How would I align them next to each other! Any advice would be greatly appreciated. Best Regards,
rlexyd Thats the same issue I am having. Have facebook on left but can't get twitter on right as its a script. Any help please? P.S. Did you manage to solve it?