May 17, 11:36
You can remove the header and footer only for specific product pages by adding a code in functions.php that uses is_product() and a product ID or slug determination, for example:
add_action( 'template_redirect', function() {
if ( is_product() && is_single(123) ) {
remove_all_actions( 'woodmart_header' )
remove_all_actions( 'woodmart_footer' );
}
}).
This will not affect other pages and is safer and more effective than hiding globally.





