I am working on a WooCommerce WordPress site. I have added WooCommerce search feature for product. But both main shop page and search result page have same template archive-product.php. But I want separate design for both pages. How can I do that?
相关问题
- Display product ACF field value in Woocommerce tra
- What is the best way to do a search in a large fil
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
相关文章
- wordpress新增页面如何个性化设置
- What is the complexity of bisect algorithm?
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Visual Studio: Is there an incremental search for
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
Based on @Capital Themes answer - you can inverse the function and add code for the non search form categories:
As @arun said in the comments copy the archive-product.php and paste in the to the woocommerce folder inside your theme (if you don't have this folder, create one)
Open the file and split the content inside that file using a php if statement
Just make sure this line of code always stays at the top of the file: