Language indicator on header

Home Forums Porto – Responsive HTML5 Template Language indicator on header

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #10016992
    ppericles
    Participant

    Hello,
    I wish to add the language indicator next to the last item of the menu bar and before the social icon.
    I also wish to have the language flag to display when on a mobile device.

    Can you help?
    Thanks,
    Pericles



    Template Version: 4.9
    #10016996
    Support
    Keymaster

    Hello, you can check the language dropdown in this page:
    http://preview.oklerthemes.com/porto/4.9.2/index-header-language-dropdown.html

    And this is the HTML:

    <li>
    	<a href="#" class="dropdown-menu-toggle" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    		<img src="img/blank.gif" class="flag flag-us" alt="English" /> English
    		<i class="fa fa-angle-down"></i>
    	</a>
    	<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownLanguage">
    		<li><a href="#"><img src="img/blank.gif" class="flag flag-us" alt="English" /> English</a></li>
    		<li><a href="#"><img src="img/blank.gif" class="flag flag-es" alt="Español" /> Español</a></li>
    		<li><a href="#"><img src="img/blank.gif" class="flag flag-fr" alt="Française" /> Française</a></li>
    	</ul>
    </li>

    Best Regards,

    Jonas


    #10016998
    ppericles
    Participant

    Hello,
    Thanks for the quick reply.
    I already know about the code snippet. The question is where to put it in my page.

    Thanks,
    Pericles


    #10017001
    Support
    Keymaster
    This reply has been marked as private.
    #10017002
    ppericles
    Participant

    Thanks.
    You are the best.

    Pericles


    #10017004
    ppericles
    Participant

    Hello again.
    Here is a tricky one.
    Is it possible to detect the country the viewer’s country of origin, so that if he comes from Greece to switch to the Greek site. Otherwise, to leave the English site.

    Pericles


    #10017009
    Support
    Keymaster

    Hello, it’s in fact complicated, but you can find some solutions on the web, this may help:
    http://stackoverflow.com/questions/5206015/fastest-way-of-detecting-users-country

    Best Regards,

    Jonas


Viewing 7 posts - 1 through 7 (of 7 total)

This topic is marked as "RESOLVED" and can not rceive new replies.