WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. gioglifx
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/google-language-translator/

  2. Rob Myrick
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thank you, that helped!
    I appreciate ya

  4. Rob Myrick
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.