• Resolved kwk

    (@kwakok)


    Please, if anyone out there could help me display the Polylang language switcher PHP code as a dropdown list? This is the code –

    <?php pll_the_languages();?>

    By default, the language switcher code is displayed as a list. I would like it to appear as a dropdown select list. Thanking you in advance for your help.

    • This topic was modified 2 years ago by kwk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    Thread Starter kwk

    (@kwakok)

    Thanks a lot

    Thread Starter kwk

    (@kwakok)

    I am using the code below. I put it in my site header and it is working fine for me.
    <?php pll_the_languages( array( ‘dropdown’ => 1 ) ); ?>

    Is there a way to change the field background color? By default the field input background color is white, I would like to change the color so that it will match well with my site’s header. I tried something like these and they did not work (I’m not good at coding at all):

    <div class=”poly”><?php pll_the_languages( array( ‘dropdown’ => 1 ) ); ?></div>
    <p class=”poly”><?php pll_the_languages( array( ‘dropdown’ => 1 ) ); ?></p>
    .poly {background-color:green;}

    Is there a way to do this?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display language switcher php code as a dropdown list’ is closed to new replies.