• Hi guys,

    I promise I searched as much as I could before posting this.

    What I’d like to achieve is to display just the flag (without the language name) in both the desktop and mobile menus.

    If this is not possible, is it possible to display just the flag (without the language name) on the desktop version and just the language name in the mobile version?

    Thanks

    • This topic was modified 7 years, 2 months ago by ant123.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • anonymized-13603639

    (@anonymized-13603639)

    How (widget, code, etc.) and where (menu, sidebar, etc.) do you show the language switcher?

    Thread Starter ant123

    (@ant123)

    Just in the menu

    anonymized-13603639

    (@anonymized-13603639)

    So, I do not believe you’ve “searched as much as you could before posting”.
    When you add the language switcher to a menu you have some settings. Two of them are

    • Displays language names
    • Displays flags

    Switch the first off, the second on. That’s it.
    Please mark the topic as solved. Thanks.

    • This reply was modified 7 years, 2 months ago by anonymized-13603639.
    Thread Starter ant123

    (@ant123)

    If you display just the flags on the desktop menu, you have blank lines in the mobile menu.

    If you turn on the language name to have at least something showing up on the mobile menu, then you have the name on the desktop version.

    What I’m trying to achieve is to have just the flag on both (or, as a backup solution, the flag on the desktop version and the name on the mobile version).

    • This reply was modified 7 years, 2 months ago by ant123.
    • This reply was modified 7 years, 2 months ago by ant123.

    How do you like the way the flags show, in this site:

    https://certs-it.com

    Check it in your desktop browner and in your mobile, easy to do, either horizontally or vertically.

    Thread Starter ant123

    (@ant123)

    Thanks, but I’m looking for a solution for the WP menu

    anonymized-13603639

    (@anonymized-13603639)

    @ant123 If you don’t see what you expect you have to check your theme/CSS. The reason for not showing flags or differnet layout in desktop and mobile is allways set by CSS.
    Check the source code of your page with the developer tools.

    Hi there,

    it seems that you seem to be fitter than I in terms of WP ?? I am trying to find a solution for my menu as well. a) I can not find these settings in the backend @lachender_engel:
    * Displays language names
    * Displays flags
    b) is it somehow possible to show only the two language flags in my menu, with out the “languages” dropdown?? Well, or at least only displaying the flags…
    I have found this, not sure if this is right:
    <!– outputs a flags list (without languages names) –>

    <?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>

    Important: You have to output yourself the ul tags if you don’t use the dropdown option
    Also what does this mean: IMPORTANT: when using one or more of these function, you *must* check for its existence before using it, otherwise your site will badly break with a fatal error at next Polylang update (as WordPress deletes the plugin when updating it).
    Is this what I want and if yo, where and how do I implement this please? Because in the backend of the plugin, I can not see any settings. Thank you!! ??
    @sv1cec – I like your flags, and that would be awesome to have this solution, without the google transalte element. Is this polylang you are using or some different solution? Cheers!

    • This reply was modified 7 years, 2 months ago by moorsanna.
    anonymized-13603639

    (@anonymized-13603639)

    @moorsanna Better do not do cross posting. I’ve answered your original post.
    https://www.ads-software.com/support/topic/helpdisplay-flags-only/#post-9492390

    @lachender_engel THANK YOU and sorry about the cross post!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Display only flag on Desktop and mobile’ is closed to new replies.