Search Function Redirecting to Original Language in Localization

Home Forums WordPress Theme CityBook – Directory & Listing WordPress Theme Search Function Redirecting to Original Language in Localization

This topic contains 10 replies, has 2 voices, and was last updated by  Audiobarn 2 months, 1 week ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #25421

    Audiobarn
    Participant

    Supported

    Hi,

    I’m working on a English and French bilingual website using WPML as the localization plugin. The original language is English, but when I try using the searchbar on French pages, the results link me back to the English results page. What’s the best way to go about resolving this?

    Thanks!

    #25441

    CTHthemes
    Keymaster

    Would you give me more info about this problem?

    Thank you.

    #25460

    Audiobarn
    Participant

    Supported
    This reply has been marked as private.
    #25488

    CTHthemes
    Keymaster

    Hi, send me your site address + wp-admin, ftp account to check.

    Thank you.

    #25507

    Audiobarn
    Participant

    Supported
    This reply has been marked as private.
    #25561

    CTHthemes
    Keymaster

    Thank you. I need your ftp account to fix it only.

    #25579

    Audiobarn
    Participant

    Supported
    This reply has been marked as private.
    #25592

    CTHthemes
    Keymaster

    Hi, the folder is empty: http://prntscr.com/krluh6

    Please check.

    #25612

    Audiobarn
    Participant

    Supported
    This reply has been marked as private.
    #25648

    CTHthemes
    Keymaster

    Hi, your problem was fixed with this code: http://prntscr.com/ksy65l

    
    <?php 
            if(defined('ICL_LANGUAGE_CODE')){
                echo '<input type="hidden" name="lang" value="'.ICL_LANGUAGE_CODE.'">';
            }
            ?>
    

    Thanks.

    #25661

    Audiobarn
    Participant

    Supported

    Amazing, thank you!

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

The topic ‘Search Function Redirecting to Original Language in Localization’ is closed to new replies.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+