Comments Igorz16 started the conversationMarch 23, 2019 at 4:02pmI'm configuring menu, I put all the objects with float left, but I want the language switcher on the right, next to the social icons (at their left). How can I do? If css doesn't works, where can I insert the code in php? Thank you 501Penci repliedMarch 24, 2019 at 7:02amHi,Please go to Customize > Addtional CSS then add custom css to do that: html[lang="your lang"] .main-navigation{ float: right; }Please add your lang you want menu float right. EX: your lang is en.Best Regards,PenciDesignIgorz16 repliedMarch 24, 2019 at 10:27amThank you, I wanted to add a php code, because it's a button, I solved by myself putting it in template-parts/header/cart_search_social.php.Thank you anywhere. 501Penci repliedMarch 24, 2019 at 3:14pmHi, I checked documention of Polylang plugin. I saw plugin have "pll_current_language" function http://prntscr.com/n28i5f Please check http://prntscr.com/n28had to know how to get locale of your language You can try use with custom code php below: // slug_lang either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’ $value = 'en'; if( function_exists( 'pll_current_language' ) && pll_current_language($value) ) { // Custom code } Best Regards,PenciDesign Sign in to reply ...
I'm configuring menu, I put all the objects with float left, but I want the language switcher on the right, next to the social icons (at their left). How can I do? If css doesn't works, where can I insert the code in php? Thank you
Hi,
Please go to Customize > Addtional CSS then add custom css to do that:
Please add your lang you want menu float right. EX: your lang is en.
Best Regards,
PenciDesign
Thank you, I wanted to add a php code, because it's a button, I solved by myself putting it in template-parts/header/cart_search_social.php.
Thank you anywhere.
Hi,
I checked documention of Polylang plugin. I saw plugin have "pll_current_language" function http://prntscr.com/n28i5f
Please check http://prntscr.com/n28had to know how to get locale of your language
You can try use with custom code php below:
Best Regards,
PenciDesign