Recent posts

  • Allow shortcodes in product excerpts
    Allow shortcodes in product excerpts

    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…

  • Custom tracking code for the thanks page
    Custom tracking code for the thanks page

    This snippet is for adding tracking for a separate piece of analytic software you may have installed. The order object contains all the order data you should need, including line items. You need to…

  • Change number of upsells output
    Change number of upsells output

    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…

  • Change number of related products output
    Change number of related products output

    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…

  • Hide loop read more buttons for out of stock items
    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…

  • Show cart contents / total
    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…

  • Display My Account link in a template file
    Display My Account link in a template file

    Displays a link to the user account section. If the user is not logged in the link will display ‘Login / Register’ and take the use to the login / signup page. If the…

  • Exclude products from a particular category on the shop page
    Exclude products from a particular category on the shop page

    As ‘clothing’ is an example in the snippet below, be sure to use a product category slug that exists in your WooCommerce store. Note that this will only work when you have your “Shop…

  • Add a custom currency / symbol
    Add a custom currency / symbol

    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…

  • Disable the default stylesheet
    Disable the default stylesheet

    You need to 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. Please don’t add custom code directly…

  • Change number of products per row
    Change number of products per row

    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…

  • Change number of products displayed per page
    Change number of products displayed per page

    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…

  • Custom sorting options (asc/desc)
    Custom sorting options (asc/desc)

    A snippet to add new sorting options to the catalog.