Support » Plugin: Bogo » Language Selection Page

  • With Bogo, is it possible to create a language selection page (like a landing page) to let users choose the site language.

    For example
    example.test –> language selection page
    example.test/en –> English site
    example.test/de –> Dutch site

Viewing 1 replies (of 1 total)
  • Hello Philip. This should get you started, Create a front-page.php file in your theme and include the following php code:

    <?php $langs = bogo_language_switcher_links();
    echo '<ul class="language-list">';
    foreach ($langs as $lang): ?>
        <li><a  href="<?= $lang["href"]?>"><?= $lang["native_name"] ?></a></li>
    <?php endforeach;
    echo '</ul>';
    • This reply was modified 10 months, 3 weeks ago by  boombalaya.
Viewing 1 replies (of 1 total)
  • The topic ‘Language Selection Page’ is closed to new replies.