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

How to amend the big image size threshold in WordPress

media library upload

If you’ve ever tried to upload an image in WordPress that has large dimensions, you may have noticed that the resulting file has smaller dimensions than the original image. This is because WordPress has a threshold for the maximum image dimensions, and if your image is higher than that threshold, it will get scaled. You …

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