Remove the word product and product-category in WooCommerce

Remove the word product and product-category in the path of WooCommerce in a simple way.

By default, in the path (permalink) of WooCommerce there will be additional words product (product) and product-category (product catalog). This helps to distinguish the article path or the categories of the article. WooCommerce discourages removing these words to avoid duplicate errors or path conflicts between regular posts and products. However, many of you still want to remove them so the product path is shorter, more search engine friendly.

Remove category text in WordPress's path
What is the best permalink structure for WordPress?

Remove the word product and product-category in WooCommerce

There are many different methods to do this, both plugins and code snippets. I see some sites sharing code snippets that help customize the path of WooCommerce without using a plugin. However, in fact these codes are not optimized, thus seriously affecting the website's performance. Specifically, they can overload the host's CPU and RAM, resulting in a slow loading of the website, even with a 503 (overloaded) error.

In this article, I will introduce you to the simplest but most effective way to lessen the website's performance.

1. First, you need to install and activate a plugin called Premmerce WooCommerce Permalink Manager Pro


2. Next, click the Allow & Continue button .

3. The plugin's setup interface will look like this. Choose the path structure that suits your needs.



Use WooCommerce settings : use the permalink settings of WooCommerce. This setting you can customize at Settings => Permalinks . It is located just below the WordPress permalink settings section.
Category slug : use the type of product catalog path tenmien.com/ten-danh-muc-san-pham.
Product slug : use a type product path tenmien.com/ten-san-pham.
Full category path : use the product category pathtenmien.com/ten-danh-muc-me/ten-danh-muc-con .
Product slug with primary category : use type product path tenmien.com/ten-danh-muc-san-pham/ten-san-pham.
Full product path : use type product pathtenmien.com/ten-danh-muc-me/ten-danh-muc-con/ten-san-pham .
Tick ​​the category Use primary categories and Add canonicals to increase compatibility for plugins. Finally, click the Save Changes button to save.

4. Delete the website cache (if you use the cache creation plugin) and check the results. It's simple, right? Good luck!

Do you know another method that is simpler and more efficient to remove the word product, product-category from the path of WooCommerce? Don't forget to share it with us in the comment box below.

If you like this post, please subscribe to my blog to regularly update the best, latest posts via email. Thanks very much. :)
Related Posts

Related Posts

Post a Comment