-
AuthorPosts
-
October 21, 2015 at 1:27 pm #522281
Hello.
I set the language WPML plugin to display the language selector in the form of text, but the theme displays the flags.
See the web: http://unibano.es/nueva/
How I can to the language selector appears as text only?
Thank you.
October 22, 2015 at 6:20 pm #523200October 22, 2015 at 6:47 pm #523217Hello,
I send admin login in Private Content.
Thanks.
October 23, 2015 at 2:19 pm #523830Hey!
you did not deactivate all other plugins, neither did you tell us if things got better for you when deactivating plugins. Are we allowed to deactivate your plugins temporarily by ourselves for testing purposes?
Regards,
AndyOctober 23, 2015 at 3:09 pm #523882Hello,
You can disable plugins to test anytime.
Thank you.October 25, 2015 at 6:41 am #524326Hi!
You can disable the theme’s default language flags with this inside 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); }
Configure the language switcher in the WPML language panel.
Regards,
IsmaelOctober 27, 2015 at 12:15 pm #525445Hello,
I am not a programmer and do not know what you mean when you indicate me to modify the functions.php file
Is there not a “visual option to set the language selector in the theme?Please I need help.
Thank you.
October 27, 2015 at 4:27 pm #525566Hi!
I edited functions.php file in Appearance > Editor and added the code Ismael posted. Please review your website now.
Best regards,
YigitOctober 27, 2015 at 5:07 pm #525627Hello,
Now I can see that the flags are gone, but the texts of WPML language selector are not displayed.
What can I do?
Thank you.
October 28, 2015 at 12:51 pm #526051Hey!
You have to configure the language switcher in the WPML panel. You can attach it to the main menu or add it inside a widget.Please refer to this link: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/
Best regards,
IsmaelOctober 29, 2015 at 3:34 pm #526854Hello,
I want the language selector in the header top left, but I see no possibility of setting up a Header Top Left Widget Area in the Widget.
How can I do it?
Thank you.October 31, 2015 at 3:45 am #527815Hi!
Add this in the functions.php file:
add_action('avia_meta_header', 'add_custom_content_to_header'); function add_custom_content_to_header() { do_action('icl_language_selector'); }
Use the Quick CSS field to adjust the position of the switcher.
Regards,
IsmaelOctober 31, 2015 at 10:24 pm #527978Hi Ismael, as I said earlier, I am not a programmer and I have no knowledge to modify the functions nor CSS file. As I can place the language selector in the head and left aligned? Thank you.
November 2, 2015 at 5:24 pm #528658Hey!
I added the code Ismael posted to Functions.php file as well. Please review your website now :)
Cheers!
YigitNovember 2, 2015 at 6:26 pm #528728Perfect,
How I can make the background color selector is transparent?
Thank you.
November 2, 2015 at 7:00 pm #528746Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#lang_sel_list * { background: transparent!important; }
Regards,
YigitNovember 3, 2015 at 12:47 pm #529156Perfect,
And how could align language selector to the right of the Top Header?
I further note that when viewing the Web on an iPhone, the language selector is not centered on the screen, in this case social icons below.
Thank you.November 3, 2015 at 12:48 pm #529158November 4, 2015 at 12:01 pm #529922Hi!
Please go to Enfold theme options > Header > Extra Elements and choose to display “Header Secondary Menu” on the right
Cheers!
YigitNovember 4, 2015 at 12:14 pm #529933OK but it does not fit the selector. The text “English” above the selector and texts are not vertically aligned to Top Header area appears. See example http://unibano.es/nueva/barras-de-accesorios-de-bano/
What can we do to improve the look?
Thank you.
November 4, 2015 at 12:16 pm #529936Also when you select the English language, language selector returns to the left side of the top header. View: http://unibano.es/nueva/barras-de-accesorios-de-bano/?lang=en
November 4, 2015 at 12:21 pm #529941And I could remove the “English” text, but the language selector still not aligned height and select English or French, the switch returns to the left.
November 5, 2015 at 5:30 am #530509Hi!
You need to adjust the english theme options. Set the Header Secondary Menu to display to the right. Add this in the General Styling > Quick CSS field\ to align the selectors:
#lang_sel_list { top: -8px; } #lang_sel_list li { border: 0; }
Cheers!
IsmaelNovember 5, 2015 at 10:25 am #530639Hey, Can someone tell me how i can add the short forms of the language like “EN” “DE” “FR” and also i want them next to each other (not a dropdown)
November 5, 2015 at 1:01 pm #530742Fantastic,
Thank you.
November 5, 2015 at 1:42 pm #530762Ismael,
When viewing the Web on the iPhone I see the language proficiency selector appears not centered.
Besides I see in the Home that the selector has a white line at the top, we can remove? View: http://unibano.es/nueva/Thank you.
November 6, 2015 at 4:11 pm #531495Hey!
add this code to Quick CSS field:
@media only screen and (max-device-width: 736px) { #lang_sel_list ul { position: relative; left: 75px; }}
and adjust as needed.
Cheers!
AndyNovember 9, 2015 at 1:27 pm #532543Thanks,
-
AuthorPosts
- The topic ‘WPML language selector in text format.’ is closed to new replies.