Google Language Translator
[resolved] How could I insert this inside my layout using PHP? (4 posts)

  1. gioglifx
    Posted 3 years ago #

    Is there a way to implement the PHP code into the site as a whole? Perhaps insert it in the head section of the whole site. The shortcode option is fantastic but, perhaps there's a way to have it fixed on all pages anywhere ( even ) outside the content area.

    Please advise,
    kind regards.


  2. Rob Myrick
    Posted 3 years ago #

    Hi gioglifx, thanks for your question. I can help you. Add this to your header.php file if you wish to place the translator there:

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

    That should do the trick - let me know if that helps!

  3. gioglifx
    Posted 3 years ago #

    Thank you, that helped!
    I appreciate ya

  4. Rob Myrick
    Posted 3 years ago #

    That's great! I'll close this topic!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.