If you want to remove categories from the breadcrumb trail on WooCommerce product pages, there’s a simple solution using a custom WordPress hook. Breadcrumbs are great for improving navigation and SEO, but sometimes you might not want to show certain elements, like categories, especially on product pages where they may clutter the trail. In this […]
snippet
How To Customize Yoast SEO Breadcrumbs in WordPress
The Yoast SEO plugin is a popular choice for optimizing content for search engines, and it includes a feature for generating breadcrumbs. Breadcrumbs are a navigational aid that helps users understand the site structure and easily navigate back to previous pages. This hook allows users to add a custom “Blog” link in the Yoast SEO […]
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 […]
How to Temporarily Disable WooCommerce Shopping for the Holiday Season
The holiday season is a great time to take a break and recharge. But what happens to your WooCommerce store while you’re away? To avoid confusion and ensure your customers know you’re closed, you can temporarily disable shopping features and display a clear holiday notice on your website. Here’s a simple PHP snippet that achieves […]
How to Change Completed Order Email Subject for Downloadable Products in WooCommerce
This code snippet modifies the subject line of completed order emails in WooCommerce specifically for downloadable products (such as eBooks). By checking the product category, it ensures that the email subject is relevant and informative for the customer. Add the code to your child theme’s functions.php file or through the Code Snippets plugin.
How to Remove the Category Prefix from WordPress URLs
If you have decided to remove the ‘category’ prefix in the site url for category pages, you need to do the following steps: If nothing changes after that, then try adding a snippet to the functions.php file of your child theme (or use a plugin to insert snippets). After following these steps, the category pages […]