Search result display page's breadcrumbs wrong

This topic has 5 replies, 2 voices, and was last updated 3 years, 1 months ago ago by Olga Barlow

  • Avatar: bingdianfeishui
    Yohance L
    Participant
    February 22, 2021 at 11:34

    1. I’m testing the Search button of main header, but the breadcrumbs of search result page is always Home>Shop as shown in the img https://prntscr.com/103m5c4, even though there is no products found. It looks strange.
    2. Can Search widget of sidebar (https://prntscr.com/103mmsf) only search post? (I saw there is a Product Search widget)

    4 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 22, 2021 at 18:44

    Hello,

    1) Provide us with WP Dashboard and FTP access to your site. We’ll check the issue in more detail
    2) Default search widget searches posts and pages, products. Product search widget searches products only.

    Regards

    Avatar: bingdianfeishui
    Yohance L
    Participant
    February 23, 2021 at 05:56

    Hello,
    update:
    I have 3 Search inputs: a) Search button in main header, b)Product Search widget in Shop page, c)Search widget in Blog page. There are serival issues.
    1. a)Search Btn result page’s breadcrumbs is always Home>Shop, even though there is no products found.
    2. b)Product Search widget searchs posts too, not only products.
    3. c)Search widget searchs posts and products.

    I want to know how to fix the 1st issue, and how Product Search widget search products only, how to add a Search widget which searchs posts only. Thank you.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 23, 2021 at 18:15

    Hello,

    Thank you. I have passed your issue to our developers. I’ll inform you once they check issue in more detail. It will take some time because we have a lot of requests.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 1, 2021 at 12:31

    Hello,

    1) If the search by products is enabled in the Theme Options > Header builder > Search then our theme uses the shop archive page as the search results page no matter if products found or not, that’s why shop appears in the breadcrumbs. You can hide it using custom CSS below

    .woocommerce-breadcrumb a[href="http://test2.scienedu.tk/?post_type=product"], .woocommerce-breadcrumb a[href="http://test2.scienedu.tk/shop"] {
        display: none;
    }

    2) Fixed. Check the Product search widget now.
    3) This is the default WordPress widget and we can do nothing with this. You can check the workaround mentioned here https://www.goldenoakwebdesign.com/blog/how-to-exclude-woocommerce-products-from-the-search-results-in-wordpress if it suits your need.

    Regards

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.