Setting limited number of reviews on product page in WooCommerce [closed]

北城以北 提交于 2021-02-20 04:59:07

问题


Is is it possible to set a limited number of reviews to display on the product page under the review tab?

Currently some of my products have 40 reviews and to display them all on a single page takes up too much space. Is there a way to limit the number of reviews to say 3, and add a see more link or a pagination link to the review tab?

If this can be done through the functions.php or one of the woocommerce source files that would be great!


回答1:


I figured out the solution for anyone who is having this problem. You need to edit the comment settings via Wordpress.

Go to Settings > Discussion from the Wordpress dashboard. Then under "Other comment Settings" check the box that says "Break comments into pages with [number]...."

What ever you set the [number] as is how many reviews will show on the review tab. The rest get paginated.



来源:https://stackoverflow.com/questions/40792214/setting-limited-number-of-reviews-on-product-page-in-woocommerce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!