Support » Plugin: Google Language Translator » Where to put the code?

  • Resolved DigitalMarty


    Hello guys, thanks for this wonderful plugin, this is exactly what I need and what i’m looking for!

    But I have problem, I want to adjust and place the code in the website so it can show on everypage, in what php file the code should be put in?

    Basically, I hope you understand my idea, that I want to put the flags in one place so everyone can go and see the flags and change the language.

    The code is needed for my two themes(two websites) one is and the other is you can check it out and see where are the flags now, but they are each put in the different place, like page.php, index.php and post.php. But i need them on everypage at the same place.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rob Myrick


    Hi MartinChillz, I think you will need to place the code somewhere in your header or footer, since these files load on all pages (most of the time).

    Place this in a good location in your header.php or footer.php file and let me know if it works for you.

    <?php echo do_shortcode('[google-translator]'); ?>

    Thanks Rob, I have placed the shortcode in header.php but its in the right corner of the page, how can i put it closer to the page? website, its not so visible to people..

    Rob, I have sent the details to support for assistance at wpstudio, thanks


    Plugin Author Rob Myrick


    OK I have found your details. I will take a look here soon – thanks!

    Plugin Author Rob Myrick


    This has been resolved by email – I’m closing this topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to put the code?’ is closed to new replies.