Герб Укріїни
Believe in Ukraine and the Armed Forces. Glory to Ukraine!

SEO Friendly URLs for WooCommerce Categories and Products – Correct Structure

Many webmasters, when creating an online store with WooCommerce, face the task of creating clean, human-readable URLs. In other words, correct structure. Unfortunately, the engine works a bit differently. It is important to note that this method will work on multilingual sites, for example, those using the WPML plugin.

So, here’s a guide on how to make these URLs:

Assign the shop link to the shop page.
Go to Settings – Permalinks and set the following parameters:

Add the following code to the theme’s functions.php file:

Just in case, hit save again in the permalink settings, and enjoy the results.

Now your links will have the correct structure, and there will be no 404 errors when navigating to subcategories.

Leave a Reply

Your email address will not be published. Required fields are marked *