There is some custom CSS in this thread that may prove helpful in your case
Thread Starter
aeim
(@aeim)
@harmonyromo thank you but its not working
@aeim Add the follows code snippet in your active theme’s functions.php –
function remove_sidebar_single_product_page() {
if ( is_product() ) {
// for understrap theme
remove_action( ‘woocommerce_after_main_content’, ‘understrap_woocommerce_wrapper_end’, 10 );
// for default woocommerce structure
remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10 );
// add wrapper end for single product
add_action( ‘woocommerce_after_main_content’, ‘understrap_woocommerce_wrapper_end_for_single_product’, 11 );
}
}
add_action( ‘wp’, ‘remove_sidebar_single_product_page’ );
function understrap_woocommerce_wrapper_end_for_single_product(){
echo ‘</main><!– #main –>’;
echo ‘</div><!– .row –>’;
echo ‘</div><!– Container end –>’;
echo ‘</div><!– Wrapper end –>’;
}
Thread Starter
aeim
(@aeim)
@pixellanguage Thank you for replying.
We received an error.
Parse error: syntax error, unexpected ‘/’ in /home2/evkfhumy/public_html/wp-content/themes/ae/functions.php on line 85
There has been a critical error on your website.
Thread Starter
aeim
(@aeim)
We got it resolved.
We found a solution below
.single-product #sidebar { display: none;}
.single-product .single_wrap { width: 100%;}
It didn’t work because in the code above its “#sidebar”
See–us silly geese have it “#left-sidebar” so all we had to do was add “left-” in the CSS above.
Thank you for your help!
-
This reply was modified 3 years, 11 months ago by aeim.