Recent posts

  • Add/Modify States

    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. Add your own or modify shipping states in…

    Read more


  • Change the default state and country on the checkout

    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. https://gist.github.com/woogists/8f2adf6a0e7a4e456c8f07900697f9e3 Note that the default_checkout_billing_country filter affects both…

    Read more


  • Override loop template and show quantities next to add to cart buttons.

    To display quantity input fields for simple products within your shop archive pages, use the following code: https://gist.github.com/woogists/c5e5d73bb4d7d44f5642313b8094937c [box type=”note”]You will 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…

    Read more


  • Display product dimensions on archive pages

    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. Display WooCommerce product…

    Read more


  • Display product attribute archive links

    You will 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. Display product…

    Read more


  • Don’t allow PO BOX shipping

    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. https://gist.github.com/woogists/f542bf635c965fd965b37815f8928bc6

    Read more


  • 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…

    Read more


  • Automatically add product to cart on visit

    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. https://gist.github.com/woogists/f24c41bac31f5ec695b98c6b06b3b19f If you want to automatically add a…

    Read more


  • Allow HTML in term (category, tag) descriptions

    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. By default, WordPress strips HTML from category descriptions.…

    Read more


  • Add a custom field (in an order) to the emails

    You can add any custom field to your order emails by hooking in and specifying the name of the custom field. This can be useful if, for example, you want to include things like the ‘transaction key’ from PayPal orders. Alternatively, you can add the code snippet using Code Snippet plugin. View on Github Here is…

    Read more


  • 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…

    Read more


  • WooCommerce payment gateway plugin base

    This code can be used as a base to create your own simple custom payment gateway for WooCommerce. If not used in a custom plugin, 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…

    Read more