How To Remove Product Category From Url In Woocommerce

Having experience with WooCommerce, I recognize the significance of having organized and customer-friendly URLs for your e-commerce site. A frequent predicament encountered by many WooCommerce users is the inclusion of the product category in the URL format. Although this may serve a purpose for some, it can often result in unnecessarily lengthy and complicated URLs. This piece aims to assist you in removing the product category from your WooCommerce URLs.

Before we dive into the details, it is important to note that modifying the URL structure of your WooCommerce store can have implications for your SEO rankings and website performance. Therefore, it is always recommended to proceed with caution and make a backup of your website before making any changes.

Step 1: Install and Activate a Plugin

The easiest way to remove the product category from the URL in WooCommerce is by using a plugin. There are several plugins available that can help you achieve this, but one popular option is the “Remove Category URL” plugin. Here’s how to install and activate the plugin:

  1. Log in to your WordPress Dashboard.
  2. Navigate to “Plugins” > “Add New”.
  3. In the search bar, type “Remove Category URL”.
  4. Find the plugin in the search results and click “Install Now”.
  5. Once the installation is complete, click “Activate”.

Step 2: Configure the Plugin Settings

After activating the “Remove Category URL” plugin, you will need to configure its settings to remove the product category from the URLs. Here’s how:

  1. Go to “Settings” > “Permalinks” in your WordPress Dashboard.
  2. Scroll down to the “Product permalink base” option.
  3. Replace the default value (usually “product-category”) with a forward slash (“/”).
  4. Click “Save Changes” to update the permalink settings.

By replacing the product permalink base with a forward slash, you are essentially removing the product category from the URL structure.

Step 3: Test and Verify

Once you have made the necessary changes to the plugin settings, it’s time to test and verify if the product category has been successfully removed from the URLs.

Open a product page on your WooCommerce store and check the URL. If the product category is no longer present in the URL, congratulations! You have successfully removed the product category from the URL using the “Remove Category URL” plugin.

However, if the product category is still visible in the URL, you may need to troubleshoot the issue. Double-check the plugin settings and ensure that you have saved the changes correctly. If the issue persists, you may need to seek further assistance or explore alternative methods.

Conclusion

Removing the product category from the URL in WooCommerce can help simplify your website’s URLs and improve the user experience. By following the steps outlined in this article, you can easily achieve this by installing the “Remove Category URL” plugin and configuring its settings. Remember to proceed with caution, make a backup of your website, and test the changes before making them live. Happy WooCommerce customization!