Woo Commerce,在归档中完全删除列(Woo Commerce, remove columns completely in archive)

编程入门 行业动态 更新时间:2024-10-27 13:25:54
Woo Commerce,在归档中完全删除列(Woo Commerce, remove columns completely in archive)

我是新手使用woocommerce,只使用wordpress大约六个月,所以可能是一个简单的答案。

我根本不想要存档中的任何列。 我只是想使用像这样的响应式网格系统来展示产品......

http://www.responsivegridsystem.com/

或使用砖石(首选)。

我在wordpress的页面模板中使用了砌体来显示无序列表,之前没有问题,但无法弄清楚如何使用它或与woocommerce商店的响应网格。

如何使用列停止woocommerce?

谢谢

I am new to using woocommerce and only been working with wordpress about six months so may be an easy answer.

I don't want any columns in my archive at all. I just want to display the products using a responsive grid system like this ...

http://www.responsivegridsystem.com/

or use masonry (preferred).

I have used masonry in a page template in wordpress to display an unordered list before without a problem but cannot figure out how to use it or the responsive grid with woocommerce shop.

How can I stop woocommerce using columns ?

Thanks

最满意答案

覆盖可以通过各种方式完成,这是最干净的方法:

该文件位于wp-content/plugins/woocommerce/templates/archive-product.php 。 你应该把它放在你的主题文件夹中 - wp-content/themes/woocommerce/archive-product.php 。 然后进行所需的更改。 例如,我首先删除行do_action( 'woocommerce_sidebar' ) 。 您可能还想覆盖在templates文件夹中找到的wrapper-start.php和wrapper-end.php (在shop或global子文件夹中,具体取决于woocommerce版本),它可以完全相同的方式覆盖。

供参考,请参阅他们的文档: http : //docs.woothemes.com/document/template-structure/

Overriding can be done in various ways, here's the cleanest approach:

The file is located at wp-content/plugins/woocommerce/templates/archive-product.php. You should put it in your theme folder - wp-content/themes/woocommerce/archive-product.php. Then make the changes you want. For instance, I'd start with removing the line do_action( 'woocommerce_sidebar' ). You might also want to override wrapper-start.php and wrapper-end.php found in the templates folder ( in either shop or global subfolder, depending on woocommerce version ), which can be overriden exactly the same way.

For reference, see their documentation: http://docs.woothemes.com/document/template-structure/

更多推荐

本文发布于:2023-08-03 00:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382440.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:remove   Commerce   Woo   archive   completely

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!