• Resolved matth1as

    (@matthiasurz)


    Hi,

    we are using the Flatsome theme and the WPML plugin. If a visitor is starting at our homepage and there is no language selected, it just shows the default Flatsome search bar. As soon as a product or other link is clicked, the url gets the /de or /en and the Fibo search is working.

    Is there a way to get Fibo also working on the root domain without the language tag behind the url?

    Best regards

Viewing 1 replies (of 1 total)
  • Plugin Support Kris

    (@c0nst)

    Hi @matthiasurz

    Try this solution:

    1. Create or make sure you have a child theme of the Flatsome.
    2. In that child theme create template-parts/header/partials folders.
    3. In that created folder create file element-search-form.php
    4. Edit that file and paste this code:
    <?php
    /**
     * Search form element.
     *
     * @package          Flatsome\Templates
     * @flatsome-version 3.16.0
     */
    
    ?>
    <li class="header-search-form search-form html relative has-icon">
    	<div class="header-search-form-wrapper">
    		<?php echo do_shortcode( '[fibosearch]' ); ?>
    	</div>
    </li>

    If you need to customize the shortcode read this article.

    Regards,
    Kris

Viewing 1 replies (of 1 total)
  • The topic ‘Search bar WPML’ is closed to new replies.