Hello,
I would like to bring this up again, because recent updates seem to contain changes which make the code not work anymore.
In my case I was able to come up with another solution to get rid of the sidebar on product pages.
/* Remove Sidebar */
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}
Now we need to add the product description again:
/* Add Product Description */
function woocommerce_template_product_description() {
wc_get_template( 'single-product/tabs/description.php' );
}
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_product_description', 30 );
This might be the reason why I am not able to make it full width through CSS.
I tried several different solutions, none of them had any effect. Because I want to use the sidebar on customer and review pages, I would like to use this on single product pages only.
Any help would be highly appreciated! Thank you so much!
Best regards,
-Bj?rn
*EDIT:
Just went through my code again and found the error, the wrong hook. In the code for the product description the add_action needs to be replaced with this:
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_product_description', 10 );