Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17297

    Hello, since i don’t want to use WPML – can you please tell me, where to add the php code of the qtranslate plugin in the header?

    It looks like this: <?php echo do_shortcode(‘[gtranslate]‘); ?>

    I already tried to place it in the header.php where it says “hook for plugins such als WPML” but then i am not able to place it exactly above the search field (like the WPML style switcher).

    Asking for a fast fix please. !!!

    The brief documentation of the plugin is here: http://gtranslate.net/docs/56-wordpress-documentation

    #94894

    Hi eaglehood,

    That hook is actually used to dynamically pull in plugin code and things like that. Since you are manually adding it in, you will do so exactly where you want it.

    If you want to put it above or near the search form, you are looking for:

    get_search_form();

    In the header.php. It still may require some css to position it correctly within the headers elements.

    Regards,

    Devin

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Translate choices with qtranslate php snippet’ is closed to new replies.