1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Language selection on mobile devices

Discussion in 'Free Divi Community Forum' started by yagoS, Feb 29, 2020.

  1. yagoS

    yagoS New Member

    Hi there,

    I am using the transposh plugin to automatically translation, and I want to have it on the top bar menu (secondary menu) as 'photo1.png'

    So, I add this code (same as in the other web) to header on my divi child theme:

    <?php if(function_exists("transposh_widget")) { transposh_widget(array(), array('title' => 'Translation', 'widget_file' => 'flags/tpw_flags.php'),true); }?>

    But it does not work...

    What can I do?

    At least, I want to be able to have language selection on the hamburguer mobile menu 'photo2.png'

    PD: At photo2.png there is another question, how to change the text on the mobile menu?

    url: https://patanegratoride.online/


    Kind regards,
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You should check whether the plugin has options to add the translation icon in the Wordpress menu system or not. For normal translation plugin, they have such features built-in.
    Check out this tutorial: https://divibooster.com/changing-hiding-the-select-page-centered-menu-text/
     
  3. yagoS

    yagoS New Member

    First thanks for that one!

    From that, yes I have checked the documentation of the plugin & I followed the instructions placing the code at header.php however does not work. I can not place translator selector on topbar for desktops...

    code: <?php if(function_exists("transposh_widget")) { transposh_widget(array(), array('title' => 'Translation', 'widget_file' => 'flags/tpw_flags.php'),true); }?>


    Are there other solutions?

    How other webs place the translation selector on movile menu?

    Regards

    PD: specificly documentation from plugin: https://transposh.org/faq/ at 'Modifications' section -> question 'How can I add the plugin interface without using the sidebar widget?'
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo
  4. yagoS

    yagoS New Member

    Disclaimer: correct code applied

    <?php if(function_exists("transposh_widget")) { transposh_widget(array(), array('title' => 'Translation', 'widget_file' => 'default/tpw_default.php'),true); }?>

    See image attached

    Regards


    upload_2020-3-1_19-33-53.png
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    What if you just put their default code: <?php if(function_exists("transposh_widget")) { transposh_widget(); }?>
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  6. yagoS

    yagoS New Member

    Nothing happened... just now it is put on header.php of divi child theme. Check the placement on the picture attached.

    kind regards!

    upload_2020-3-3_1-15-2.png
     
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    To confirm whether the changes are reflected on your live site, you can try to add something like the below & see if it shows on your site:
    Code:
    Log In or Sign Up to view this code.
    If the above div tag did show up on your site, then most likely there's some issues with the translator code. And you should refer the plugin developer about it.
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More