【问题标题】:Changing the format of the products in WordPress在 WordPress 中更改产品的格式
【发布时间】:2016-05-13 19:31:24
【问题描述】:

我正在使用 Woocommerce 插件。我想在商店页面中更改我的产品格式。 现在,产品显示为“块”,就像在 WordPress 中显示产品的标准格式一样。

图片
产品名称1
价格
Add_to_Cart_button

图片
产品名称2
价格
Add_to_Cart_button

但现在我试图让产品显示为“线条”。像这样:

Product_Name1、价格、Add_to_cart_button
Product_Name2、价格、Add_to_cart_button
Product_Name3、价格、Add_to_cart_button

该图像不需要并且已成功删除。我在online 搜索了更改格式的解决方案,发现在 CSS 文件中,您可以将变量“display”从“block”更改为“inline”。但不幸的是,这并没有得到想要的解决方案。

【问题讨论】:

    标签: css wordpress woocommerce wordpress-theming


    【解决方案1】:

    覆盖 woocomerce 模板可能是这里的解决方案之一:

    如果您想自定义“商店”页面,

    • 创建以下文件夹:/wp-content/yourtheme/woocommerce/
    • 将商店模板文件复制到主题的 /woocommerce/ 文件夹中。
    • 现在根据需要更改文件中的 html 代码/布局

    您也可以自定义其他 woocomerce 页面,只需将它们复制到主题文件夹中,保持相同的文件夹结构即可。

    或者您也可以尝试以下插件: http://codecanyon.net/item/display-product-multilayout-for-woocommerce/6196331

    【讨论】:

      【解决方案2】:

      使用display:inline-blockdisplay:table-row 可能会对您有所帮助

      【讨论】:

      • 我在哪里改变这个?因为它不起作用,所以我认为我调错了
      猜你喜欢
      • 1970-01-01
      • 2016-05-31
      • 1970-01-01
      • 2015-03-24
      • 1970-01-01
      • 1970-01-01
      • 2022-12-14
      • 2014-08-01
      • 1970-01-01
      相关资源
      最近更新 更多