vino
vino

Reputation: 302

Woocommerse Reviews show after Tabs

Woocommerce Review section show after Tabs section. Now it's showing Tab.

Ex : Now : Description | Extra tab | Reviews

I want : Description | Extra tab


Reviews (This section show separate)

Thanks.

Upvotes: 0

Views: 7963

Answers (1)

Mehdi Namvar
Mehdi Namvar

Reputation: 1151

first remove reviews tab, in your functions.php:

add_filter( 'woocommerce_product_tabs', '_remove_reviews_tab', 98 );
function _remove_reviews_tab( $tabs ) {
  unset( $tabs[ 'reviews' ] );
  return $tabs;
}

then in the single-product.php template file, any line you want :D, call comments_template() function. If you wish to have reviews tab in specific places, for example after "product tabs" and before "related products", do it with hooks:

add_action( 'woocommerce_after_single_product_summary', '_show_reviews', 15 );
function _show_reviews() {
  comments_template();
}

Upvotes: 9

Related Questions