When working as a web developer, you often come across a variety of technical issues that challenge your problem-solving skills. One such instance occurred recently with a regular client of mine. I was recently fixing a simple bug for a regular client of mine. His site is hosted on Bluehost, and some of his customers […]
woocommerce
How To Add a Badge To Selected Products – Woocommerce
Today let’s look at a simple snippet that hopefully will help someone:)Task: The client wanted to add badges to some products, depending on the season. First I created four new categories (winter, spring, summer, autumn) and then added the code to functions.php. And styling: /*seasonal badges*/.winter-badge, .spring-badge, .autumn-badge, .summer-badge {padding: 3px 4px;text-align: center;background: #FFFFFF;font-weight: bold;position: […]

