Viewing 3 replies - 31 through 33 (of 33 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    Check WPGlobus_Config object

    
    error_log( print_r( WPGlobus::Config(), true ) );
    

    I sent a question to support “how to set up plugin to be viewing which language is currently choosed?”https://drive.google.com/file/d/0B-rDBwpohTOTazBucjU3bU5mX28/view?usp=sharing
    The answer which i get is
    “You can use this piece of code to get current language

    if ( class_exists('WPGlobus') ) {
      $current_language = WPGlobus::Config()->language;
    }

    I can not find answer in this topic “where i have to paste it?” . i was trying to paste this everywhere, beginning of body section etc. even to plugin’s files, but there is too many of them.

    • This reply was modified 8 years, 1 month ago by penerka.
    • This reply was modified 8 years, 1 month ago by penerka.

    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 (https://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.

Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘how to make only one flag’ is closed to new replies.