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!
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
Thanks… Where does this go?
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
Thanks Jouse!
Clever insertion of the shortcode. How can I center the height so that bar aligns better?
Hi!
Use this code:
select.goog-te-combo {
top: 7px;
position: relative;
}
Adjust as needed.
Best regards,
Josue
Thanks!