How to add text before/after product prices in WooCommerce programmatically

woocommerce before after price

In WooCommerce, product prices by default are displayed as “$5.00” for simple products and “$5.00 – $20.00” for variable products. Ever wanted to add text before or after the pricing display, like this: “Only $5.00” or “$5.00 limited time only”? There are a number of plugins that can help do this, but maybe you want to do …

Read More

Guide to effortlessly adding sample products to your WooCommerce store

woocommerce sample products

If you’re in the process of creating a new WooCommerce store but don’t yet have products to add – perhaps you’re waiting on a list from your client – it can be challenging to envision the customer experience and make design adjustments. However, there’s a simple solution! You can easily add sample products to your …

Read More

Why you should (maybe) set cache lifespan to 10 hours or less on WordPress

wordpress cache 10 hours

There are numerous caching plugins available for WordPress, in addition to caching mechanisms provided by your web host, for the latter you might not even be aware caching is enabled. These can help speed up your website load times, however if you are using caching of any form, it can open up the potential to …

Read More

How to add a custom body class in WordPress

add body class

For frontend styling, it’s often useful to target elements based on a class of the <body> element. Learn how to add your own custom body class, or remove existing ones in this blog post. What are body classes? Body classes are the CSS class names added to the <body> HTML element, these classes can then …

Read More