Single flag instead of language switcher
-
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.34Active 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 SEOJulien
- This topic was modified 6 years, 11 months ago by .
- This topic was modified 6 years, 11 months ago by .
- This topic was modified 6 years, 11 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Single flag instead of language switcher’ is closed to new replies.