• Resolved juliendiotworldtour

    (@juliendiotworldtour)


    Hi to the WP Globus team and thanks for your amazing plugin!

    Like others, I would like to remove the drop down language switcher by the “one flag solution” in my menu because the language switcher doesn’t work on touchscreen devices (smartphone and tablet).

    I know my question is already solved but I cannot make it work using this code in my header.php theme (accesspressparallax):

    <?php
    if ( class_exists( ‘WPGlobus’ ) ) {
    echo ‘<div class=”wpglobus-selector-box”>’;
    foreach( WPGlobus::Config()->enabled_languages as $lang ) {
    if ( $lang == WPGlobus::Config()->language ) {
    continue;
    }
    $flag = WPGlobus::Config()->flags_url . WPGlobus::Config()->flag[ $lang ];
    echo ‘‘;
    echo ‘ ‘;
    echo ‘
    ‘;

    }
    echo ‘</div><!– .wpglobus-selector-box –>’;
    }
    ?>

    My website use only 2 languages: French (fr) and English (gb)

    Everything else works fine and this is the only thing I am struggling with as I am clearly not a developer…

    Thanks a lot for your help and do not hesitate to give me a step by step solution!

    P.S.: I tried to send you my request through “Help desk” but I don’t have any blue button in the bottom right corner showing at all to send you my form.

    details:

    Wordpress version: 4.9.5
    PHP version: 5.6.34

    Active plugins:
    Autoptimize
    Contact Form 7
    Disable comments
    Genesis columns advanced
    Jetpack by wordpress.com
    MetaSlider
    PinPoint Booking System
    Rich contact widget
    Simple Lightbox
    Tabby Responsive tabs
    UpdraftPlus
    WP SuperCache
    WP Youtube Lyte
    WP Globus
    Yoast SEO

    Julien

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    1. for mobile devices there is
    https://wpglobus.com/product/wpglobus-mobile-menu/

    2. as for code you wrote if you can not to make it work yourself then you need custom work.

    3. There is red question icon on any page of wpglobus.com site

    Thread Starter juliendiotworldtour

    (@juliendiotworldtour)

    Hi Alex and thanks for your answer but it doesn’t suit me.

    I find it is also more user friendly to adopt the “only 1 flag” solution in my menu (showing english flag on French content, and French flag in english content).

    Thanks Alex!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single flag instead of language switcher’ is closed to new replies.