Recent Reviews Widget – #comment-N url close product tabs
-
I’ve spent almost a month to find a solution but to no avail. I really hope someone is able to help me with this.
I’ve moved the Review out of tab with the following snippet.
// Remove Review from Tab add_filter( 'woocommerce_product_tabs', 'woo_remove_review_tab', 98 ); function woo_remove_review_tab( $tabs ) { unset( $tabs['reviews'] ); // Remove the reviews tab $tabs['description'] = $tabs['description']; $tabs['additional_information'] = $tabs['additional_information']; return $tabs; } // Placed review below the product data tab add_action('woocommerce_after_main_content', create_function( '$args', 'call_user_func(\'comments_template\');'), 30);
The above works fine.
The problem is when I click the product review from Recent Review Widget, the page correctly anchored at the selected review BUT the product tabs (description/additional information…etc) is closed. The tabs content does not show.
screenshot -> https://imgur.com/I2F5DtY
I’ve searched everywhere, trial and error with my very elementary knowledge, asked around but no one seems to know how to solve this.
I reckon it is because after moving the review out of tab, it is consider “open” when the user access it via the Recent Review Widget. So, the other tabs are closed. I’m not a programmer and most likely wrong.
Anyone reading this can help me with this?
This is driving me insane.
- The topic ‘Recent Reviews Widget – #comment-N url close product tabs’ is closed to new replies.