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

    (@chrystl)

    Thread Starter dados

    (@dados)

    Okay.. tanks.. I think this can work.. so first will create menu list and add this script, only problem what I can see is that selected language its not stay selected on page redirect.. so when you change language to Arabic site translate work but selected language in bar is still English.. this is not good ??

    Thread Starter dados

    (@dados)

    Okay.. I do not want to use some big scripts or something so I did this.. I will write here if somebody else need it..

    1.) I create sidebar in my theme, and add it to header

    <div class="drop-dl">
      <a class="lang-chose" href="#"><img src=""> Chose language</a>
      <?php get_sidebar(); ?>
    </div>

    2.) Then I go to admin page and on widget section I add Language Switcher to Sidebar to get Unsorted Lists from languages

    3.) and I add small script and css code to get this work, here is CodePen demo link

    Any suggestion is welcome ?? Because this solution work with “Polylang widget”, the good part is that you have addition options and functionality to chose from widget “Language Switcher” https://prntscr.com/9t4xdt

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘flags in drop down’ is closed to new replies.