这里有一个你可以使用的黑客。
更新:安德鲁·巴特尔(AndrewBartel)在下面提到。最好将模板文件复制到主题中,以便它们覆盖默认的woo commerce模板文件。
在woocommerce插件文件夹中,查找名为product reviews的文件。php
woocommerce/templates/single-product-reviews.php
找一行写着
<div id="review_form_wrapper">
删除类review\\u form\\u包装,或在其前面添加1。这将使隐藏的窗体可见。
接下来,您将要删除其他显示“添加审阅”(触发lightbox)的按钮,因为您在末尾已经有了“提交审阅”按钮。
您需要根据需要修改这些行:
<a href="#review_form" class="inline show_review_form">submit yours</a>
<a href="#review_form" class="inline show_review_form button" title="\' . __( \'Add Your Review\', \'woocommerce\' ) . \'">\' . __( \'Add Review\', \'woocommerce\' ) . \'</a>
您可以删除上面的行,也可以只在每个段落元素中添加一个display:none来隐藏整个内容
style="display:none"