Move Review in Product Style Classic
Our default product page style Classic: https://fashion-classic.wooler.co/product/gar-harbor-shirt/
Idea: move review section to bottom, under Description section

Edit child-theme

function.php

1
add_action('wooler_before_content_single_product_classic', '_wooler_remove_review_tab', 10);
2
3
function _wooler_remove_review_tab()
4
{
5
add_action('woocommerce_product_tabs', '_remove_review_in_tabs', 10);
6
add_action('woocommerce_after_single_product_summary', '_add_review_section', 12);
7
}
8
9
function _remove_review_in_tabs($tabs)
10
{
11
if (isset($tabs['reviews'])) {
12
unset($tabs['reviews']);
13
}
14
15
return $tabs;
16
}
17
18
function _add_review_section()
19
{
20
echo '<div class="stt-review-box-render"><div class="stt-review-box">';
21
echo '<h2>' . esc_html__('Reviews', 'wooler') . '</h2>';
22
comments_template();
23
echo '</div></div>';
24
}
Copied!

style.css

1
.stt-single-product-classic .stt-review-box-render{
2
margin-top: 50px;
3
}
4
.stt-single-product-classic .stt-review-box-render h2{
5
font-weight: 400;
6
font-size: 2.4rem;
7
}
Copied!