need to rename product-category slugs
-
When I created my product categories I did not take into consideration the url should be useful for google to read and eye catching so humans will click. So now all my product categories have ugly slugs. My actual product urls are fine because of the title I gave them. It is just the product category page urls that are the problem.
e.g. if you click on a product category in the left hand menu something like this will come up
https://heavenlybluevapor.com/product-category/batt/vsnspnrs/ . . . with batteries and vision spinners being the product categories
I would actually like the url to read https://heavenlybluevapor.com/product-category/batteries/vision-spinners/, the complete name of the product categories, instead of “batts” and “vsnspnrs” that is not pertinent to the page with those specific products on it.
When I went into product categories and renamed the slug then the page will get a 404 error. I was able to go back and put the original ugly slug back in and the error went away. I have been reading on this issue and was told that if you change the permalinks option to: Custom Structure: /%postname%/ you will not get a 404 error when you change your slugs. But when I changed that option and saved it it would not save that setting, if i go back to the permalinks settings the original setting of “Post Name” stays selected??
I also notice there are Optional and Product Permalink options as well and they are set to:
Optional
If you like, you may enter custom structures for your category and tag URLs here. For example, using topics as your category base would make your category links like https://example.org/topics/uncategorized/. If you leave these blank the defaults will be used.
Category base
Tag base
Product category base “product-category” greyed out?
Product tag base “product-tag” greyed out?
Product attribute base /attribute-name/attribute/Product permalink base
These settings control the permalinks used for products. These settings only apply when not using “default” permalinks above.
Default https://heavenlybluevapor.com/?product=sample-product
Product https://heavenlybluevapor.com/product/sample-product/
Shop base https://heavenlybluevapor.com/shop/sample-product/
Shop base with category https://heavenlybluevapor.com/shop/product-category/sample-product/
Custom Base Enter a custom base to use. A base must be set or WordPress will use default instead. “/product” is typed in hereAny suggestions? Thank you.
- The topic ‘need to rename product-category slugs’ is closed to new replies.