admin管理员组文章数量:1279147
By default in woocommerce when a user wants to add a review of a product, they click 'add a review' and this opens up a pop-up lightbox. I want to disable this part and just display the review form. Anybody has any ideas?
By default in woocommerce when a user wants to add a review of a product, they click 'add a review' and this opens up a pop-up lightbox. I want to disable this part and just display the review form. Anybody has any ideas?
Share Improve this question asked Apr 29, 2013 at 12:49 KeithKeith 1,5664 gold badges17 silver badges21 bronze badges1 Answer
Reset to default 3Here's a hack you can use.
Update: As Andrew Bartel mentioned below. It's best to copy the template files into your theme so that they override the default woo commerce template files.
In your woocommerce plugin folder, look for a file called product-reviews.php
woocommerce/templates/single-product-reviews.php
Look for a line that says
<div id="review_form_wrapper">
Either remove the class review_form_wrapper, or add a 1 in front of it. That will make the hidden form visible.
Next you will want to remove the other buttons that says ADD REVIEW (triggers lightbox), because you will already have the SUBMIT REVIEW button at the end.
You will want to modify these lines to your needs:
<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>
You could either remove the lines above, or you could just add a display:none to each paragraph element to hide the whole thing
style="display:none"
本文标签: pluginsHow to disable lightbox popup for quotadd a reviewquot only
版权声明:本文标题:plugins - How to disable lightbox popup for "add a review" only? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741273921a2369617.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论