Create custom Themes for WooCommerce with these resources.
What are “conditional tags”? The conditional tags of WooCommerce and WordPress can be used in your template files to change what content is displayed based on what conditions the page matches. For example, you may want to display a snippet of text above the shop page. With the is_shop() conditional tag, you can. Because WooCommerce uses custom post […]
Display Category Image on Category Archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters /** * Display category image on category archive */ add_action( 'woocommerce_archive_description', 'woocommerce_category_image', 2 ); function woocommerce_category_image() […]
Overriding the product search box (widget)
The product search box widget loads the search box using the template function: get_product_search_form() For more info, see: Function get_product_search_form. It then looks for the product search form in the file ‘product-searchform.php’ or uses its default markup. You can override the default WooCommerce template product-searchform.php by customizing the markup. For reference, the default markup is: This […]