New Landing How can we help? Themeforest Theme Support Flexform Display WPML flags in horizonal row

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Flexform
  • #17515
    msfromh
    Member
    Post count: 1

    Hi-

    in the current version of WMPL its possible to show only the flags, without the name in a horizontal row. If I select this in the plugin, it does not show on the live site, but it shows the regular Flexform pulldown language switcher.

    How can I change that so that the flags are shown in a horizontal row? In the WPML documentation it says, put <?php do_action(‘icl_language_selector’); ?> to the appropriate part of the theme. Could you guide me to where I have to put it?

    Thanks and best regards

    Marcel

    #17825
    Melanie – SUPPORT
    Member
    Post count: 11032

    You can find this code in header.php

    <?php if ($show_translation) { ?>
    <li class="parent aux-languages">
    <a href="#" class="languages-menu-item"><?php _e("Languages", "swiftframework"); ?></a>
    <ul id="header-languages" class="sub-menu">
    <?php
    if (function_exists( ‘language_flags’ )) {
    language_flags();
    }
    ?>
    </ul>
    </li>
    <?php } ?>

    And you can try replacing

    language_flags();

    with

    do_action(‘icl_language_selector’);

    Cheers!

    #17917
    msfromh
    Member
    Post count: 1

    Hi Melanie-

    that did not work. I showed “Language” without any function. I tried deleting everything after <?php if ($show_translation) { ?> and putting the new function in but that did not work either.

    Could you check again?

    Best regards

    Marcel

    #17968
    cyrber
    Member
    Post count: 3

    I ve the same pb
    Best regards

    #17970
    cyrber
    Member
    Post count: 3

    Sorry, problem setup, solved 😉

    #18331
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, I’m afraid if my solution doesn’t work I’ll have to ask you to hire a developer to modify the theme according to your liking. All the best

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register