Documents
-
Hide loop read more buttons for out of stock items
You need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme.
-
Query whether WooCommerce is activated
If you’re building a theme which supports but doesn’t require WooCommerce, you may want to wrap WooCommerce functionality (think cart links etc) inside a conditional query. That way, if WooCommerce isn’t activated, the functionality is simply ignored instead of producing fatal errors.
-
Sample products loop
-
Set product image widths in a WooCommerce theme
Set the image widths your WooCommerce theme requests for catalog thumbnails, gallery thumbnails, and the main product image. The example preserves other WooCommerce theme settings. Before you start These settings define requested image sizes in pixels. Your theme’s CSS still controls the displayed width. Use original images large enough for the sizes you choose; requesting […]
-
Show cart contents / total
Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. To display the cart contents and total […]
-
Show product categories in WooFramework breadcrumbs
Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme.
-
Display Category Image on Category Archive