• Excellent plugin, no trouble at all … You might need to write a function to add the dropdown into a custom position, e.g.:

    add_action( ‘storefront_header’, ‘my_show_gt_translate_button’ );
    function my_show_gt_translate_button() {
    if ( class_exists( ‘GTranslate’ ) ) {
    echo ‘<div>’.do_shortcode(‘[gtranslate]’).'</div>’;
    }
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 7 years, 8 months ago by bdbrown.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    Thanks for the review.

    I want to comment about your code.

    Your code places GTranslate HTML code inside <head> section of your site, you do not want to do it, it is not correct.

    The correct way will be to modify your template file and place:

    <div style="inline CSS goes here"><?php echo do_shortcode('[gtranslate]'); ?></div>

    Thanks!

    Thread Starter Jon Dennis

    (@jondennis)

    Thank you for pointing out the error; much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excellent’ is closed to new replies.