Remove WordPress archive title prefix

On almost every website that I create, the archives don’t need to be titled as “archives”, because it’s self-explanatory that the page is an archive. So I quite often remove the “Archive:” prefix of all archive pages, including custom post types.

Just paste this code to your functions.php:

// Remove anything that looks like an archive title prefix ("Archive:", "Foo:", "Bar:").
add_filter('get_the_archive_title', function ($title) {
    return preg_replace('/^\w+: /', '', $title);
});

Thanks to Quinn Comendant, who posted a comprehensive solution to this problem on StackExchange.

Searching for the perfect product carousel plugin for WooCommerce

I’m designing the front page for a WooCommerce store, and I need to find a suitable product carousel plugin to display products from certain categories. I already bought WooCommerce Product Carousel Slider Pro, which seemed to do what I wanted, but I found out that there’s some sort of a conflict when using it with SiteOrigin Page Builder. So, it’s not a very good option. I’m going to try some other alternatives next.

WooCommerce Product Carousel Slider Pro