简体   繁体   English

WooCommerce从产品/类别中删除包装标签

[英]WooCommerce removing wrapping tags from products/categories

Is it possible to remove tags, such as the <li> tags from around the products/categories in WooCommerce? 是否可以删除标签,例如WooCommerce中产品/类别周围的<li>标签? I have tried searching for hooks, and more. 我试过寻找钩子等等。 Also, I successfully removed the <ul> tags from around the product set as well. 此外,我还成功删除了产品集周围的<ul>标记。 I would like to spit out all product data in my cell since I am using foundation framework. 因为我使用的是基础框架,所以我想在我的单元格中吐出所有产品数据。 Is this possible, or do I have to take an alternative route? 这是可能的,还是我必须采取替代路线?

To change the html structure in Woocommerce 改变Woocommerce中的html结构

You should need, most of the time, to make changes in the available Woocommerce templates . 大多数情况下,您应该需要在可用的Woocommerce模板中进行更改。

First you should read how to override woocommerce templates via your active theme 首先,您应该阅读如何通过您的活动主题覆盖woocommerce模板

Now to change (or remove) the <li> tags on products and product category archives , you need to override content-product.php and content-product_cat.php templates file. 现在要更改(或删除)产品和产品类别归档上的<li>标记 ,您需要覆盖content-product.phpcontent-product_cat.php模板文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM