Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, I join this post as I have the same issue but in the home page.
    Not sure i I have to open another post….

    website.it (Home page)
    website.it/home-eng (Home page translated)

    Default Language: Italian
    2nd Language: English

    When I try to point to website.it it goes to website.it/home-eng.
    Also clicking to the italian flag to change the language. No way. The redirect still home-eng.

    But this weird behavuour happens only for the home page. All the others pages work fine.

    Note: I did also some test with different browser:
    – Firefox all is ok.
    – Explorer ok
    – Opera not ok.
    – Chrome not ok
    – Chrome for Android not ok.

    The browser language is not the couse of the issue as I tested deactivating and acrivating the setting of language recognition in the plugin. No different results in my test.
    And also, clicking on the flag, non correct redirection happens.

    I’ve thought about caching…but it not.

    What can I do??

    Thanks

    Thread Starter Alessandro

    (@alessandro37)

    Hi,

    Yes, it seems to work properly. I’ll run some other test once I’ll update the online website.

    Ciao!
    Alessandro

    Thread Starter Alessandro

    (@alessandro37)

    Hi,

    Thanks for your reply.
    Just to let you know, I’m working in localhost now and I added in ,y child funtion this code:

    add_filter( 'pre_get_posts', 'search_by_product_only' );
    
        function search_by_product_only( $query ) {
    
            // check if search query only
            if ( $query->is_search ) {
    		
                $query->set( 'post_type', array( 'product') ); // here you can add multiple post types in whcih you want to search
            }
    
            return $query;
        }
    

    It seems working fine..

    Thanks again for your help!

    Thread Starter Alessandro

    (@alessandro37)

    Ok then. Thank you for your reply!

    I’ll do it with CSS

    Thanks again.

    Alessandro

    (@alessandro37)

    It could be a wrong configuration in the Smart Search settings within the “item to search throug” tab.

    Try to double check and let us know!

Viewing 5 replies - 1 through 5 (of 5 total)