Posted on

Removing the Review Date

WooCommerce includes a built-in reviews system to allow customers to leave a review for the products they purchased.

It shows their comment, a rating from 1 to 5, the customer name and avatar, the review date and (if enabled) a label that indicates if the customer is a verified owner of that product.

Let’s talk more about the date. Imagine that you just moved from another platform to WooCommerce. All your reviews will probably show the current date instead of their original date. That would be annoying, so a solution would be to simply hide the review date.

How would you do that?

Continue reading Removing the Review Date

Posted on

Removing the Footer Menu on Storefront Mobile Layout

Storefront is mainly an eCommerce theme, it is built by the developers of WooCommerce, for WooCommerce users.

But, it is a very customizable theme, so it can also be used in other ways. In example, I use it on this blog, without WooCommerce, and it still works perfectly. Many people use it with WooCommerce but only as a catalog, so customers are not able to buy products on the site, but just look at them.

In this last case, you probably don’t need the Cart and Checkout pages, so you remove them, but Storefront still shows a menu in the Footer area when you visit the site on a mobile device, and that menu leads you to the Cart page as well, which you removed.

How can you hide that menu when it is not needed?

Continue reading Removing the Footer Menu on Storefront Mobile Layout

Posted on

Adding the Breadcrumbs to Storefront Without WooCommerce

If you, like me, are using Storefront without using WooCommerce, then you probably noticed that the breadcrumbs are not included by default.

This is because Storefront uses WooCommerce functions to print the breadcrumbs, before the content. But there’s another way to have that, with the plugin Yoast SEO.

Continue reading Adding the Breadcrumbs to Storefront Without WooCommerce

Posted on

Get the Status of a Twitch Stream

I worked on a site for a friend some time ago and she is a streamer on Twitch. What I wanted to add is a widget in the header that shows her Twitch stream status, so when she is live, if someone goes to the site, they can see that, and eventually check her live Twitch stream.

Knowing if someone is live via the API that Twitch provides is very easy. Let’s check how I did that.

Continue reading Get the Status of a Twitch Stream

Posted on

How to Create a Custom Bulk Action

WordPress 4.7 introduced a way to create your own custom bulk actions for your post types.

Before that, there were plugins to do it, but now that it’s in the core, it’s way easier to add a new bulk action, potentially you only need three functions!

Let’s see an example together about how to add a Move to Drafts bulk action, I know that is already possible if you bulk edit posts, but it involves many clicks, while with a bulk action is only a couple clicks!

Continue reading How to Create a Custom Bulk Action