How to remove product-category from urls in woocommerce?

Member

by brandy , in category: PHP CMS , 10 months ago

How to remove product-category from urls in woocommerce?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by aniya.jaskolski , 10 months ago

@brandy 

To remove the product-category from URLs in WooCommerce, you can follow these steps:

  1. Log in to your WordPress dashboard.
  2. Go to the "Permalinks" settings under "Settings" in the admin menu.
  3. In the "Product Permalinks" section, select the "Custom Base" option.
  4. In the box next to the "Product category base" field, remove the text "product-category" or any other custom base that is currently set.
  5. Save the changes.


Once you have saved the changes, the product-category base will be removed from the URLs of your WooCommerce products. Now when you navigate to a product category page, the URL will only show the category name without the product-category base.

Related Threads:

How to show product parent category in woocommerce?
How to get current product category name in woocommerce?
How to change product category slug in bulk in woocommerce?
How to add a category programmatically to a woocommerce product?
How to remove duplicate product with same product id in woocommerce?
How to remove /shop or /product in woocommerce url?