如何改变woocommerce短代码的输出?

时间:2017-10-26 11:49:38

标签: php html wordpress woocommerce

当我使用woocommerce短信时,它有一个特殊的html布局作为输出! 例如,如果我使用短代码:<?php echo do_shortcode['[products]']?> 它会在html的某个布局中显示产品,如下所示:

<div class="row">
 <div class="product-grid">
   <ul>
    <li>
    <li>
    <li>
    <li>
   </ul>
  </div>
 </div>

并且里面有一定的html布局。 现在我的问题是如何更改短代码生成的html布局?

1 个答案:

答案 0 :(得分:2)

1.GO TO functions.php相应的plugin/theme根文件夹。

2.按product-grid搜索此页面或此布局中出现的任何常见class

3.您将找到此短代码的功能。