-
AuthorPosts
-
September 12, 2016 at 5:39 pm #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 GisoSeptember 12, 2016 at 8:13 pm #685336I’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.
September 12, 2016 at 9:31 pm #685375Hi!
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,
BasilisSeptember 12, 2016 at 11:46 pm #685425I want to completely remove the flags please.
September 13, 2016 at 11:01 am #685632I want it too.
September 14, 2016 at 8:25 am #686198Hi,
Please try the following in Quick CSS under Enfold–>General Styling:
.menu-item-language { display:none !important; }
Regards,
RikardSeptember 14, 2016 at 9:58 am #686226This 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
September 14, 2016 at 10:44 am #686256I 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.
September 14, 2016 at 11:57 am #686293Having the same issue. Is there already a fix for this?
September 14, 2016 at 12:20 pm #686302I 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.
September 14, 2016 at 12:33 pm #686313I’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.September 14, 2016 at 12:41 pm #686318Thanks. 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.
September 16, 2016 at 5:42 am #687223 -
AuthorPosts
- You must be logged in to reply to this topic.