Woocommerce-产品类别的特定模板?
1 个回答
- 投票数
-
-
感谢您的快速回复 正如您提到的,我也找到了答案.让我描述更多细节. 我们可以通过使用以下格式创建自己的模板来覆盖它 taxonomy-product_cat- {slug} .php 例如如果我们的类别名为" abc产品",请检查我们将其显示为abc产品的网址. 然后我们的模板应命名为taxonomy-product_cat-abc-product.phpThanks for fast response I've also found the answer as you mentioned. Let me describe for more detail. We can override it by creating our own template with the format taxonomy-product_cat-{slug}.php e.g. if our category is named 'abc product', go to check the url we'll see it display as abc-product. Then our template should be named as taxonomy-product_cat-abc-product.php
- 10
- 2013-04-11
- Atthapon Junpun-eak
-
我遇到了同样的问题,经过艰苦的搜索,我发现了这个插件.希望能有所帮助. http://magnigenie.com/product/wordpress-custom-taxonomy-category-pages/I had the same problem and after searching hard I found this plugin. Hope it can help. http://magnigenie.com/product/wordpress-custom-taxonomy-category-pages/
- 1
- 2015-11-26
- Nirmal Ram
-
将\ wp-content \plugins \ woocommerce \templates \taxonomy-product_cat.php复制到\ wp-content \themes \ MYTHEME \ woocommerce \taxonomy-product_cat.php\wp-content\plugins\woocommerce\templates\taxonomy-product_cat.php copy into \wp-content\themes\MYTHEME\woocommerce\taxonomy-product_cat.php
- 0
- 2020-01-19
- Jon
-
我想为特定类别(而不是单一产品)创建特定模板.
有可能吗?
谢谢