Add google translate to header area

Posted in: Newspaper
Post count: 25

Hello. Can you tell me how I can get a google translate plugin in my header area? I have a plugin downloaded for it but I cannot figure out how to get it in the header area.

Thank you.

Post count: 22421

Hello,
Unfortunately we have not tested any translate plugins with our theme so we have no idea on their implementation.
Most plugins can make use of a shortcode. You can use a do_shortcode function: https://developer.wordpress.org/reference/functions/do_shortcode/
Here is the file that contains the header area: http://screencast.com/t/nJKoLoBo7od
Thanks.

Post count: 25

Is there an area in the theme settings where we can add html or any text to the header area?

Also can you explain how your translate feature works? Does it automatically test a user’s computer language preference and ask them if they want to translate? And if so does that work for every browser?

Thank you very much for your support.

Post count: 22421

Hi,
There is a custom html box in the theme panel , but the code will not be added to the header ares: http://screencast.com/t/OcbgRkdyeypD If you want to target the header area, you will have to alter the theme files and edit header.php from the main folder of the theme.
The translate area from the theme panel does not detect the language. It’s a simple languange change for elements that cannot be targeted by the wordpress language change. It’s not dynamic. What you set is what others will see.
If you want to be able to switch languages, then maybe you can use a plugin like qtranslate x
Thanks.

Post count: 25

Bogdan,
Thanks so much for the reply. Really helps. Great support.

Post count: 25

One other thing. Is it possible to add any text in the top bar area?

Thanks.

Post count: 22421

Hi,
You could add text to the top-bar if you edit one of the top-bar files here: http://screencast.com/t/8P8jAdkXjrZ
There are 4 files and you need to edit the top bar file corresponding to the one you selected from here: http://screencast.com/t/ctTX7s2Ioo7
Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.