• Hello,

    I am using WordPress version 4.5.3
    with Polylang plug-in 1.9.3
    Theme: Wine 1.3.1 (by ThemeREX)
    site: http:// theworldwinery. com

    I was wondering if there is a way to show up the flags without having a drop down menu.

    I just want the French and UK flag to show up in the top right corner.

    Cheers!

    https://wordpress.org/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    You can add the language switcher in your menu like this: https://polylang.pro/doc/create-menus/ or in a widget like this: https://polylang.pro/doc/widgets/

    The language switcher options are just here: https://polylang.pro/doc/the-language-switcher/

    Then you need certainly to add some CSS rules to display it in the top right corner.

    Thread Starter iceolex

    (@iceolex)

    Thanks Chrystl!

    It worked but for some odd reason
    The first flag from the left (in this case France)
    the link became unclickable and doesnt appear when i hover it with my mouse
    but it shows when i do inspect element

    any idea why ?

    Thread Starter iceolex

    (@iceolex)

    I modified this in the header

    // user menu Area
    if( get_custom_option(‘show_user_menu’) == ‘yes’ ) { ?>
    <ul id=”language-switcher”>
    <?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>

    <?php }

    and modified this for the CSS

    /* Language Switcher */

    #language-switcher li {
    list-style: none;
    display: inline;
    margin-right: 10px;
    }

    #language-switcher {
    z-index: 99;
    position: absolute;
    right: 2%;
    }

    http:// theworldwinery. com/

    permalink setting : date and title
    static home page : yes (home)
    polylang setting: language is decided by folder name
    taxinomy media folder: checked
    synchronisation: nothing checked
    tool: nothing checked

    before changing the appearance of the flags,
    they were working fine

    now only 1 out of 2 flag works.
    but language link shows up in browser “inspect” tool

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘flags without drop down menu’ is closed to new replies.