-
AuthorPosts
-
October 13, 2014 at 1:30 pm #334865
Hi,
I recently updated my site. It is now running WordPress 4.0, Enfold 3.0.1 and WPML 3.1.7.2.
The language switcher disappeared from the Main Menu. I couldn’t find how to reinstall it.
What should I do?Looking forward to your support
Best
JuliaOctober 13, 2014 at 3:46 pm #334973Hi StMo!
Please create us an admin account and we’ll look into it.
Best regards,
PeterOctober 14, 2014 at 9:17 am #335454This reply has been marked as private.October 15, 2014 at 3:42 am #335886Hey!
Please add this on functions.php:
function ava_icl_language_selector(){ do_action ('icl_language_selector'); } add_action('ava_after_main_menu', 'ava_icl_language_selector', 10);
Use this to adjust the position of the language switcher:
#lang_sel { position: absolute; right: 0; top: 50px; }
Best regards,
IsmaelOctober 15, 2014 at 10:53 am #336043Hey Ismael,
Thank you for the patches! However, as I have no experience with altering php-files, I’ve further questions:
First patch:
At which line of the document should I insert the code? Simply at the end of the document?Second patch:
Should I enter this part to Quick CSS?Best regards,
JuliaOctober 16, 2014 at 12:30 am #336466Hey!
1- Yes you can add the code to bottom of Functions.php file
2- Yes, please add the code to Quick CSS fieldRegards,
YigitOctober 17, 2014 at 11:16 am #337231Hey,
thanks to you, the language switcher is back!Unfortunately, I liked it much better, when it was part of the menu, as in the older versions of enfold/wpml – especially on small screens.
Is there a way, to got this layout back?Best
JuliaOctober 17, 2014 at 12:58 pm #337257Hey!
Please try adding following code to Functions.php file in Appearence > Editor
function add_custom_wpml(){ ?> <script> jQuery(window).load(function(){ jQuery('div#lang_sel').appendTo('nav.main_menu'); }); </script> <?php } add_action('wp_footer', 'add_custom_wpml');
Regards,
YigitOctober 17, 2014 at 1:46 pm #337304Hey Yigit,
thank you for the prompt answer!
I’m afraid that didn’t do the trick. Do you’ve got an other suggestion?
Best
JuliaOctober 17, 2014 at 2:03 pm #337316Hey Julia!
I tried to login to your website but credentials did not work. Can you please go to WPML options and choose to display language switcher in menu?
Cheers!
YigitOctober 17, 2014 at 2:56 pm #337353This reply has been marked as private.October 18, 2014 at 12:56 pm #337674Hi!
Please try to clear the browser cache. Maybe the browser cached the website when you used your admin account and when you logged in as “Kriesi” the browser loaded the “new” website data without using the cache.
Regards,
PeterOctober 20, 2014 at 8:47 am #338185This reply has been marked as private.October 28, 2014 at 8:40 am #342075Hi!
Just had a look at your site and the language switcher is appearing on the menu.
Should we consider this issue as resolved?
Best regards,
ArvishOctober 29, 2014 at 9:57 am #342630This reply has been marked as private.October 29, 2014 at 10:24 am #342636Hi!
Could you please verify the login credentials and post theme again. I have just tried logging in to no avail.
Cheers!
ArvishOctober 29, 2014 at 3:00 pm #342722This reply has been marked as private.October 29, 2014 at 3:54 pm #342763Hey!
1) I removed the flag icons with this code (I inserted it at the bottom of the functions.php file):
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); }
2) I commented out your custom css code in the quick css field (English website) and I could fix the language switcher position.
Best regards,
PeterOctober 30, 2014 at 12:35 pm #343359Hey Peter,
Thank you very much. The switcher is now in the position I’d like it to be. :)
Two things I would like to improve:1) How can I include the switcher for the mobile version?
2) The switcher appears “folded out”. Would it be possible to show it “foldet up”?Best Julia
November 1, 2014 at 6:00 am #344482Hey!
I’m sorry but the thread is getting a bit too long. If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thank you for understanding.
Cheers!
Ismael -
AuthorPosts
- The topic ‘Language Switcher’ is closed to new replies.