Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #417894

    Hi,

    it is possible to make the language-switch whitout flags?
    I will use only DE & EN as text.

    How i can change the “hight” of second Header Secondary Menu?

    Thanks
    Coco

    #418701

    Hi Coco!

    Try adding this to the bottom of your functions.php file.

    function new_nav_menu_items($items,$args) {
    if (function_exists('icl_get_languages')) {
    $languages = icl_get_languages('skip_missing=0');
    if(1 < count($languages)){
    foreach($languages as $l){
    if(!$l['active']){
    $items = $items.'<li class="menu-item"><a href="'.$l['url'].'">'.$l['native_name'].'</a></li>';
    }
    }
    }
    }
    return $items;
    }
    add_filter( 'wp_nav_menu_items', 'new_nav_menu_items',10,2 );

    Cheers!
    Elliott

    #418930

    I think you mean functions.php in “wp-includes” folder?

    Sorry Elliot, but it don’t work’s :-(
    I dont see a difference, both flags are there…

    Coco

    #418954

    Hi!

    No, you should go to Appearance > Editor and add the code to Functions.php file of the theme which is located in wp-content/themes/enfold folder

    Cheers!
    Yigit

    #418982
    This reply has been marked as private.
    #419726

    Hey!

    Add this to the functions.php file to remove the flags:

    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
            remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }

    Regards,
    Ismael

    #420128

    Thank you, it works nice…..

    But when i click English version, so appear the secondary menu over the top menu.
    with both flags!?

    It is possible to control the color of this language-switcher (blue) independent of the menu colors?

    Regards
    Coco

    #420517

    Hey!

    Please add following code to Quick CSS

    li#menu-item-112 + .menu-item a,li#menu-item-160 + .menu-item a {
      color: blue!important;
    }

    Regards,
    Yigit

    #420527

    Ok, thank you!

    Last problem is the displaying of the secondary menu in english page version.

    Regards
    Coco

    #420528

    Hi!

    Can you please elaborate? You can go to Enfold theme options and change the language and change the options for that specific language only. To activate secondary menu, please go to Enfold theme options > Header > Extra elements and choose to display it

    Cheers!
    Yigit

    #420543

    OHHH :-) now i’m understand! sorry… :-) …it works!
    But i have make many changes in the german version.

    Can i export the theme settings file of the german section an then
    import this in the english section? Or is it only one file for all versions?

    Regards
    Coco

    #420544

    Hi!

    Personally i did not try it but it should definitely work fine :)

    Regards,
    Yigit

    #420558

    Style overwriting works!

    Regards
    Coco

    #420968

    Hey!

    So you got this fixed?

    Regards,
    Rikard

    #421202

    Yes, all works fine.
    Thanks for help!

    Coco

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘WMPL whitout flags’ is closed to new replies.