• Resolved gccdirk

    (@gccdirk)


    Hello Together,

    I need some tips or help for the switcher in the menu.
    Since there are problems with the display of the dropdown menu in the Kadence Free Theme I would like to set only the language you can select!
    If German is set you see the selection English and if English is set the selection German.

    Then there is in the mobile canvas menu the problem that only one language there is the DropDown but does not go, here the same function should be set as described above.

    Would be happy about tips or assistance, thank you

    Greetings Dirk

    Translated with https://www.DeepL.com/Translator (free version)

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

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

    (@alexgff)

    You can insert the code snippet in the functions.php file.

    
    add_filter('wpglobus_dropdown_menu', 'filter__wpglobus_dropdown_menu', 10, 2);
    function filter__wpglobus_dropdown_menu( $dropdown, $config ) {
    	return false;
    }
    

    To hide the current language in the main menu you should add a CSS rule in the WPGlobus Options page, Custom Code tab

    
    .wpglobus-current-language {
      display: none;
    }
    
    Thread Starter gccdirk

    (@gccdirk)

    Hi Alex,

    thank you, something has already changed, but it doesn’t quite stick yet.

    Please have a look at the screenshots, maybe you have an idea.

    Header Menu
    Mobile Menu
    CSS WPGlobus

    Plugin Contributor Alex Gor

    (@alexgff)

    You should add css rule in the Custom CSS option

    Thread Starter gccdirk

    (@gccdirk)

    Thanks Alex

    I had already thought that and also changed yesterday, but is the same error
    Custom CSS

    But I managed to display both languages in the header and in the mobile menu.
    How do I get it now that only the active language is displayed or it is set so that if English is set the German language can be selected.

    Similar to https://wpglobus.com/

    Plugin Contributor Alex Gor

    (@alexgff)

    add class name without spaces
    .wpglobus-current-language

    Thread Starter gccdirk

    (@gccdirk)

    Hello Alex,

    great thanks, now it’s exactly how I wanted it!
    Thank you for the great support

    No idea why the learning signs were in there now, had only copied your code, but never mind! Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tips for Switcher in Kadence Free Theme’ is closed to new replies.