WooCommerce-如何删除产品和网址中的产品类别? [英] WooCommerce- How to remove product & product-category from urls?

查看:447
本文介绍了WooCommerce-如何删除产品和网址中的产品类别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WordPress上使用WooCommerce,它添加了产品&网址的产品类别. http://dev.unwaveringmedia.com/8dim/product-category/all-party-supplies/ http://dev.unwaveringmedia.com/8dim/product/14-snowman-serving-tray/

I'm using WooCommerce on a WordPress and it adds product & product-category to the URLs. http://dev.unwaveringmedia.com/8dim/product-category/all-party-supplies/ http://dev.unwaveringmedia.com/8dim/product/14-snowman-serving-tray/

我需要删除产品"和网址中的产品类别".有什么方法可以修改永久链接并将其删除吗?

I need to remove 'product' & 'product-category' from the URLs. Is there any way to modify the permalinks and remove them?

推荐答案

对于SEO和UX具有产品类别库是一种很好的做法.产品类别库有助于区分产品与帖子.我通常将产品类别库更改为我们的产品"或产品".

Its good practice for SEO and UX to have a product category base. Product category bases help to distinguish products from posts. I usually change the product category base to "our-products" or "products".

要执行此操作,请转到设置->永久链接->输入所需的产品类别库.

To do this go to settings->permalinks-> enter your desired product category base.

这篇关于WooCommerce-如何删除产品和网址中的产品类别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆