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: […]
Snippets
High Resolution Preview Thumbnails for Youtube Embeds in Perfmatters Plugin
Are you looking to improve the quality of your YouTube preview images in the Perfmatters plugin? We have just the solution for you! Today, I’m excited to introduce you to a highly useful helper plugin that significantly enhances the quality of YouTube preview images when you enable Lazy Loading iFrames and Videos in the Perfmatters […]
How to disable font preload in Beaver Builder
I recently faced a small issue in Beaver Builder. Some fonts were loading but not being used. I found that the problem was with Beaver’s font preloading. With this simple hook, I disabled this feature. This code should be inserted into fucntions.php of your child theme. Hope this helps you too.
How to add email notification when an order is in Pending status in Woocommerce without plugin
Just recently one of my clients asked me to add a notification feature if an order goes into Pending status in his Woocommerce store. This simple hook helps to solve this problem. This code should be inserted into fucntions.php of your child theme.
How To Add An Additional CSS Class To a Whole Page in Elementor
This post is about a simple helper for Elementor that will make your life easier. If you’ve ever created your template for Elementor, you’ve probably encountered the problem that you can’t set an additional class for the entire template. Yes, you can add a class for any block, element, or section, but you can’t do […]