Categories
Code Snippets

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. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears […]

Categories
Code Snippets

Add checkout validation styles to a third party or custom theme

You need to add this CSS to your child theme’s style.css file or to your customizers’ “Additional CSS” section. Please don’t add custom code directly to your parent theme’s style.css file as this will be wiped entirely when you update the theme. This file contains bidirectional Unicode text that may be interpreted or compiled differently […]

Categories
Code Snippets

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. This file contains bidirectional Unicode text that […]

Categories
Code Snippets

Change add to cart button text

Code Snippet Add 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. Third-party Plugins Along with using custom code, it is possible to change […]

Categories
Code Snippets

Change the placeholder image

The placeholder image can now be set at: WooCommerce > Settings > Products as of version 3.5x. More info at: Configuring WooCommerce Settings. WooCommerce 3.4x or earlier Add 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 […]