我是新手使用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/
更多推荐
发布评论