How to remove product-category from urls in woocommerce?

Member

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

How to remove product-category from urls in woocommerce?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by aniya.jaskolski , 6 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.