Tagged: reviews
Hi there,
We would like to show Reviews as default on our Woo Commerce Single Product page. We were told by yourselves to paste this code at the bottom of the functions.php file. We just did and it broke the whole site! The code we were sent is:
add_filter( 'woocommerce_product_tabs', 'sb_woo_move_description_tab', 98);
function sb_woo_move_description_tab($tabs) {
$tabs['reviews']['priority'] = 1;
return $tabs;
}
We would still like Reviews to show as default (instead of Description). Your help, as always, would be much appreciated.
Thanks,
Robert
Hi!
What fatal error did you get? if you are only seeing a blank page try enabling DEBUG:
http://codex.wordpress.org/WP_DEBUG
Best regards,
Josue
We restored the site now from our hosts backup thanks. But we’d like still to get ‘safe’ code to make the Reviews tab default.
Robert
We’d need to know what caused the error in order to fix the code. I just tested that code on my install and it worked without any errors so far.
Best regards,
Josue