• Resolved Eagle_Fantasy

    (@eagle_fantasy)


    Hi, I like you theme very much.

    Now one thing bothers me: I need to add a language switcher (from Polylang plugin) on the right of the header region, on top of or below the search box. How can I do that? When I naively add the corresponding function, the position look bad.

    My site: https://www.uscreditcardguide.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    please search for the following code in “header.php”:

    <header id="header">

    and just below it paste this code:

    <ul class="custom-lang-switcher"><?php if (function_exists('pll_the_languages')) { pll_the_languages(array('show_flags'=>1,'show_names'=>0)); } ?></ul>

    Then add this custom CSS to style the language switcher:

    #header .custom-lang-switcher {float: right; list-style-type: none; margin: 0; padding: 0;}
    #header .custom-lang-switcher li {float: left; margin: 0 10px 0 0; padding: 0;}

    Best regards,
    Tomas Toman

    Thread Starter Eagle_Fantasy

    (@eagle_fantasy)

    That’s great!! Thanks for your reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I insert a language switcher on the header region?’ is closed to new replies.