Title: Where to put the code?
Last modified: August 22, 2016

---

# Where to put the code?

 *  Resolved [DigitalMarty](https://wordpress.org/support/users/martinchillz/)
 * (@martinchillz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/)
 * 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 motivation.lv and the
   other is yoursite.lv 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.
 * Thankyou!
 * [https://wordpress.org/plugins/google-language-translator/](https://wordpress.org/plugins/google-language-translator/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186775)
 * 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]'); ?>`
 *  Thread Starter [DigitalMarty](https://wordpress.org/support/users/martinchillz/)
 * (@martinchillz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186780)
 * 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..
 *  Thread Starter [DigitalMarty](https://wordpress.org/support/users/martinchillz/)
 * (@martinchillz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186791)
 * Rob, I have sent the details to support for assistance at wpstudio, thanks
 * Martin.
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186794)
 * OK I have found your details. I will take a look here soon – thanks!
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186867)
 * 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.

 * ![](https://ps.w.org/google-language-translator/assets/icon-256x256.png?rev=3007649)
 * [Translate WordPress - Google Language Translator](https://wordpress.org/plugins/google-language-translator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-language-translator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-language-translator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-language-translator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-language-translator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-language-translator/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-the-code-5/#post-5186867)
 * Status: resolved