Woo | Developer Blog
  • Get started
  • Stay updated
    • Roadmap Insights
    • Changelog
    • Release downloads
    • Newsletter
    • WooCommerce Meetups
    • Join the Community Slack
  • Grow with Woo
    • Become a Woo agency partner
    • Become a Marketplace partner
    • Contribute to WooCommerce
  • Docs

Theming Snippets

  • Query whether WooCommerce is activated

    Query whether WooCommerce is activated

    Automattic Avatar
    Automattic

    |

    Mar 22, 2013


    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… Read more

  • Add checkout validation styles to a third party or custom theme

    Add checkout validation styles to a third party or custom theme

    Automattic Avatar
    Automattic

    |

    Mar 1, 2013


    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… Read more

  • Show product categories in WooFramework breadcrumbs

    Show product categories in WooFramework breadcrumbs

    Automattic Avatar
    Automattic

    |

    Jul 30, 2012


    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… Read more

  • Change add to cart button text

    Change add to cart button text

    Automattic Avatar
    Automattic

    |

    Apr 27, 2012


    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… Read more

  • Change the placeholder image

    Change the placeholder image

    Automattic Avatar
    Automattic

    |

    Mar 3, 2012


    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… Read more

  • Change number of upsells output

    Change number of upsells output

    Automattic Avatar
    Automattic

    |

    Feb 12, 2012


    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… Read more

  • Change number of related products output

    Change number of related products output

    Automattic Avatar
    Automattic

    |

    Feb 12, 2012


    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… Read more

  • Hide loop read more buttons for out of stock items

    Hide loop read more buttons for out of stock items

    Automattic Avatar
    Automattic

    |

    Feb 6, 2012


    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

  • Show cart contents / total

    Show cart contents / total

    Automattic Avatar
    Automattic

    |

    Feb 3, 2012


    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… Read more

  • Display My Account link in a template file

    Display My Account link in a template file

    Automattic Avatar
    Automattic

    |

    Feb 3, 2012


    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 /… Read more

  • Disable the default stylesheet

    Disable the default stylesheet

    Automattic Avatar
    Automattic

    |

    Jan 28, 2012


    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… Read more

  • Change number of products per row

    Change number of products per row

    Automattic Avatar
    Automattic

    |

    Jan 28, 2012


    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… Read more

Next Page→

Updates

  • Changelog
  • Release Packages
  • Release Calendar
  • Newsletter
  • Status

Information

  • About
  • Contact Us

Community

  • Community Slack
  • WooCommerce Meetups
  • GitHub Discussions
  • Community Forum
  • Code of Conduct
  • Community Participation Guide

Grow with Woo

  • Become a Woo agency partner
  • Become a Marketplace partner
  • Contribute to WooCommerce

Never miss an update

This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form

Automattic Company Site

COPYRIGHT WOOCOMMERCE 2026
TERMS & CONDITIONS  PRIVACY POLICY  PRIVACY NOTICE FOR CALIFORNIA USERS
Do not sell or share my personal information.