Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter neutie

    (@neutie)

    Well I just did not see that. Thank you so much.

    I would like to know this as well. I tried different things but nothing will work. I’m trying to just show one flag on my site (http://www.storyexperts.eu) but can’t seem to figure it out. I’d like to show the English flag whenever I’m on the Dutch site and vice versa.

    Thread Starter neutie

    (@neutie)

    Does anyone have any idea? If one flag isn’t possible, would it at all be possible to at least have the other flag pop up next to my current language when hovering?

    Thread Starter neutie

    (@neutie)

    I have tried different codes, but it won’t work.

    I found this code for example:

    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 '<a href="' . WPGlobus_Utils::localize_current_url( $lang ). '">';
    					echo '<img src="' . $flag . '" /> ';
    					echo '</a>';
    
    				}
    			echo '</div><!-- .wpglobus-selector-box -->';
    		}

    However, it adds an English flag to the top of my site. The problem I am facing is the following (see image, this is when I hover over the Dutch flag). I’d like to just have the English flag in the footer whenever I’m in Dutch language and vice versa.

    http://www.storyexperts.eu/language.png

    You can see it when you hover over the language in the footer on the site: http://www.storeyxperts.eu

    Hope someone can help. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)