Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #685290

    Hallo,
    ich hatte mittels Code in der function.php im Child-Ordner
    /* SCHALTET SPRACHUMSCHALTER IN HEADER-ZEILE AUS */
    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);
    }
    die WPML-Fahnen aus dem oberen Header verbannt und darüberhinaus in den WPML-Einstellungen die Fahnen in das Hauptmenü gelegt. Dort (links vom Search-Icon) erscheinen auch nur die Fahnen der jeweiligen Übersetzungen, nicht permanent beide Fahnen.
    Nach dem Update auf 3.8. erscheint rechts neben dem Search-Icon die zwei Fahnen und sind permanent da.

    Wie lassen sich diese wieder ausblenden?

    Darüber hinaus würde ich gerne CSS-Codeschnipsel anwenden, um die Fahnen links vom Search-Icon enger zusammenzubringen. Ich finde jedoch die entsprechenden Klassen o.ä. nicht.

    Alternativ wäre ein Codeschnipsel, der die beiden Sprachfahnen in der oberen Headerzeile derart beeinflusst, dass jeweils nur die für die Seite zur Verfügung stehenden Sprachen angezeigt werden, nicht permanant alle.

    Danke
    Beste Grüße Giso

    #685336

    I’m having the same problem. I have this in my functions:

    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);
    }
    

    Since update to Enfold 3.8 the flags are appearing in my top bar. I don’t want them here.

    #685375

    Hi!

    We have notisfied Kriesi for the issue and asked if he has done any changes, for a specific reason.
    In the meantime, do you want to remove the flags completly or change them position?
    So we can see how we can help.

    Thank a lot

    Regards,
    Basilis

    #685425

    I want to completely remove the flags please.

    #685632

    I want it too.

    #686198

    Hi,

    Please try the following in Quick CSS under Enfold–>General Styling:

    .menu-item-language {
      display:none !important;
    }

    Regards,
    Rikard

    #686226

    This code does the opposite of what I want. It removes the languages from my menu (where I want them) but leaves the 16 flag images sitting in my header which I do not want but have appeared since upgrade to 3.8. Thanks

    #686256

    I agree with lucybb. Since Enfold-Update the flags will display right of the search-icon. This is not the language selection at main-menu which I defined in WPML-Settings.

    I want remove the language-selection right of the search-icon, not left.

    #686293

    Having the same issue. Is there already a fix for this?

    #686302

    I think the problem is something like:

    Enfold puts out the WPML language switcher always

    Enfold doesn’t respect the WPML setting.

    I mean the setting regards whether language switcher should be shown or not. I do opt not to display language switcher in my WPML settings but Enfold ignores this?

    Previously the code I quoted above was being given out as an Enfold fix for this issue. But that code no longer works.

    Maybe the reason the code no longer works has something to do with this – https://wpml.org/2016/09/want-try-new-language-switcher-coming-wpml/?utm_source=WPML+users&utm_campaign=0427f39ddd-New_options_in_WPML_s_language_switcher&utm_medium=email&utm_term=0_1690db64e3-0427f39ddd-90621245

    Though that version of WPML is not released yet I think. But maybe WPML changed the name of it or similar.

    Somehow upgrading Enfold to 3.8 has left us all with a language switcher that we cannot get rid of.

    Thanks

    • This reply was modified 8 years, 3 months ago by lucybb.
    #686313

    I’ve managed to hide the flags by adding:
    .av-language-switch-item {
    display: none !important;
    }
    to the quick CSS.
    Not my preferred way of working, but at least my client is happy now.

    #686318

    Thanks. I’ve added a thread on WPML support forums re this also:
    https://wpml.org/forums/topic/enfold-cant-stop-flags-showing/

    • This reply was modified 8 years, 3 months ago by lucybb.
    #687223

    Hi,

    Thanks for the info and feedback everyone. Could you make it work temporarily with the CSS provided by @Kahaa?

    Regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.