Salta la navigazione

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 1 risposta, ha 2 voci.

Ultimo aggiornamento da Prosenjit Barman 1 anno, 7 mese fa.

Assistito da: Prosenjit Barman.

Autore Messaggi
Novembre 2, 2023 a 9:34 am #14714371

adrianoG-10

Hi,
I'm using Woodmart theme that recommend WPML as a partner plugin.
This theme has a header for mobile. In this header you can place some object included WPML Language switcher.
When you place it, there are few options that don't include the 'only flag' option.
I mean no option to get just flags without language text (like italian..english..).
The reason to not have text language is that this text increase the space and it is cut off.
In attached picture 1 and 1b you can see the available settings and in picture 2 the result (switcher cut-off)

I followed here: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/ your documentation but any of your steps help.

I also try by creating a custom Switcher and using your [wpml_language_selector_widget] code to insert in the header. It doesn't appear. I do it by following this:
(https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/?utm_source=plugin&utm_medium=gui&utm_campaign=languages)
Please check attached picture 3

In the whole site I use the language switcher also with language text but in mobile it is mandatory not to have the text by the flag.

I think that some css is available to the 'text only' (something like 'display-none')in the mobile header position to have what I show in picture 5 (the is a photoshop simulation).
I think it's a reasonable request, also because it helps mobile usability

I'm not expert in coding, nut I made a lot of site, so usually I can move well in plugin settings.
My site is: link nascosto (top-right corner in mobile view)

Many thanks in advance.

(In case, my first speaking language is italian, but i prefer to use english to easily find a solution to this issue)

1b-few-options.png
5- ang-selector-mobile-no-text.jpg
3-custom switcher.png
2- lang-selector-mobile-with-text.jpeg
1-adding-switcher-in-mobile-header.png
Novembre 2, 2023 a 2:15 pm #14717637

Prosenjit Barman
Sostenitore di WPML dal 03/2023

Lingue: Inglese (English )

Fuso orario: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

Since the query is placed in the English language on our Italian forum, I took this ticket and responded in English.

I understand what you're looking for and will try my best to assist in this matter.

We do have an option to display the flag only, if you've placed a custom language switcher(Using Shortcode or Element) on the header. Please try the steps below and check if they help to solve the issue.

- Please go to "WPML > Language" and Scroll down to the "Custom language Switcher" option.
- Enable it and click on the "Customize" button
- Within the customizer, check the Flag option and Uncheck the options related to the language name(Screenshot: link nascosto). Save the changes.

I hope it will help.

The shortcode you've tried to use is typically more suited for displaying the language switcher in a widget. If your intention is to display the language switcher directly using a shortcode, please use the following shortcode instead: [wpml_language_switcher].

For detailed instructions on how to use this shortcode and its various options, you can refer to this guide: https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml_language_switcher

Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

Novembre 5, 2023 a 4:52 pm #14733559

adrianoG-10

Hi,
alto of CSS lines are needed, to adapt it and avoid it was cut off by page margins, but it works fine.
Thanks a lot