Site logo

[Resolved] Override the default search template and use woocommerce archive-product.php

Home Forums Support [Resolved] Override the default search template and use woocommerce archive-product.php

Home Forums Support Override the default search template and use woocommerce archive-product.php

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1389414
    David

    Hi,

    how can I override the default GeneratePress search template and use WooCommerce archive-product.php template?

    I want to make search results look like categories archive pages.

    Thank you.

    #1389707
    Leo
    Staff
    Customer Support
    #1390385
    David

    This only adds &post_type=product to GET request. So my URL after search contains .../?s=whattosearch&product_type=product but I need to change the whole layout of search results page and make it look products categories archives.

    #1391266
    David
    Staff
    Customer Support

    Hi there,

    instead of using the Search Widget – use the Product Search Widget.

    #1391715
    David

    Hi,

    thanks for your replies. 🙂

    This is what we are currently getting: Link

    And I need to make it look like this: Link

    #1392058
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You may have a plugin or custom function preventing the default functionality.

    For example, here’s one of our Site Library sites: https://gpsites.co/merch/?s=ninja&post_type=product

    #1399187
    David

    Hello,

    thank you Tom! It was caused by Disable Blog plugin (https://wordpress.org/plugins/disable-blog/).

    Have a nice day.

    #1399670
    Tom
    Lead Developer
    Lead Developer

    Glad you found the issue! Thanks for letting us know 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.