• Resolved heberperez

    (@heberperez)


    Hi there team
    First I want to thank you guys for such an awesome job done with this plugin. Now, I am having difficulties adding the plugin into my header, I choose to put the code into the header file and is not working… I decided to display it at the end of the header, right before the </header> tag. Am I doing something wrong here?
    Thanks in advance
    HP

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi heberperez, can you provide the code you are using to add the translator, and also a link to your website?

    Maybe you added it incorrectly? You will need this code in order to add to your header.php template:

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

    Let me know if that helps.

    Thanks, Rob

    There are cases where the theme styles sometimes hide the translator, but I would still need to see the site in order to find out if this is the case.

    Thanks! Rob

    Thread Starter heberperez

    (@heberperez)

    Hi there Rob
    Thanks for replying back to me, I added the code line that you mentioned in your post right before the </header> tag, without any results.
    here is the link to the website, I have to mention that it is a child theme (in the parent theme I used the same line of code, and it worked like a charm)

    this is the line of code that is part of the header right now:

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

    and the site link is:

    http://www.theleashcompany.com

    Thanks in advance for your help
    HP

    Yes, I think that is the problem. I’ve noticed that some of the scripts are not firing at the correct time in some child themes. I am using wp_enqueue_scripts as the action for adding the scripts into the <head> section, which is 100% correct – although it doesn’t work correctly with some themes.

    Would you mind providing me access to the site? I only need WordPress Dashboard access, and I’m going to modify the plugin, but I’m not sure if this is the problem, so it will be much faster if I just login directly.

    You can contact me here with login details if that’s okay:

    http://www.studio88design.com/get-in-touch/

    You can simply create a new user name with password just for me. No need to provide your specific password. Thanks!

    I believe this issue has been resolved.

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

The topic ‘Adding code to header is not working for me’ is closed to new replies.