WordPress.org

Forums

Google Language Translator
[resolved] Where to put the code? (6 posts)

  1. MartinChillz
    Member
    Posted 1 year ago #

    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/

  2. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    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]'); ?>

  3. MartinChillz
    Member
    Posted 1 year ago #

    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..

  4. MartinChillz
    Member
    Posted 1 year ago #

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

    Martin.

  5. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

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

  6. Rob Myrick
    Member
    Plugin Author

    Posted 1 year ago #

    This has been resolved by email - I'm closing this topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Language Translator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.