• Resolved SJW

    (@whitsey)


    I have modified the search so that it only searches post_type=product to limit search results to shop items only.

    1. After adding a marker to each file I discovered that the woocommerce doesn’t use a template – it is coded into functions using Theme Options.

    2. I want a sidebar for the search results only BUT in theme options, it only allows for Shop sidebar or Product sidebar.

    How can I activate the sidebar ONLY on search results page.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Anthony Hortin

    (@ahortin)

    Instead of changing the default search, I would recommend just using the Product Search widget that comes supplied with WooCommerce. It was built specifically to just search products.

    As for the sidebar, you’ll need to need to modify the quark_woocommerce_before_main_content() and quark_remove_woocommerce_sidebar() functions. You can put a copy of the modified functions in your child theme and they should get picked up before the ones in the parent theme.

    You’ll need to modify them so they check is_search() and then show/hide your sidebars accordingly.

Viewing 1 replies (of 1 total)
  • The topic ‘How to show sidebar in woocommerce search results’ is closed to new replies.