Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #390512

    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

    #390533

    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

    #390534

    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

    #390540

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.