Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #332807

    Hello –

    I would like to add a drop down menu in the my top social bar on the left hand side (atop the logo). I have already installed this plug-in
    https://wordpress.org/plugins/google-language-translator/ and set up thing son the back end… how do I do this?

    This is the short code for the header, I would like that centered in that bar.

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

    Thanks a bundle!

    #333078

    Hey mcraig77!

    Thank you for using Enfold.

    Please try this:

    function add_custom_script_translator(){
     echo "<div class='g-trans'>".do_shortcode('[google-translator]')."</div>";
    }
    add_action('avia_meta_header', 'add_custom_script_translator', 10);

    Cheers!
    Ismael

    #333441

    Thanks… Where does this go?

    #334077
    This reply has been marked as private.
    #334609

    Hi!

    Check your website, i put the shortcode here and added this to Quick CSS:

    select.goog-te-combo {
        margin-bottom: 0 !important;
        background-color: white !important;
    }
    #flags {
        width: auto;
    }

    Regards,
    Josue

    #334619

    Thanks Jouse!

    Clever insertion of the shortcode. How can I center the height so that bar aligns better?

    #334623

    Hi!

    Use this code:

    select.goog-te-combo {
        top: 7px;
        position: relative;
    }

    Adjust as needed.

    Best regards,
    Josue

    #335994

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Google Language Translator Plug-in intergration’ is closed to new replies.