The product page is controlled by single-product.php:
https://developer.wordpress.org/themes/basics/template-hierarchy/
Customise that template inside your theme to add/remove sidebars for products only.
hey mike,
good news bad news. the bad news is that that isn’t quite the case as far as i can tell, at least not in relation to how i was meaning to describe the current problem and desired solution. am i right in thinking that this page is injected into a higher order template from the theme? the issue was that the usual sidebars were fubar’d because of how this was injected.
now, with that said, here’s the good news: i had been meandering through the various files after starting with the single-product.php page to begin with, following the trail of the do_action( 'woocommerce_before_main_content' );, wc_get_template_part( 'content', 'single-product' ); and do_action( 'woocommerce_after_main_content' );. now that you suggested i check out the file, though, i noticed this time the do_action( 'woocommerce_sidebar' ); which i promptly commented out thinking it could fix some of the layout issues that were being caused w the site’s regular sidebars, and voila!
all that to say, i think the original question may still stand and be relevant for broader purposes and specifically for my next step in changing up the checkout page (diff page and page files obv, but same concept i’m guessing), but even so it led me to a fix for the most immediate issue i was working through 🙂
thanks!
Checkout etc is more straightforward because they are regular pages. page.php is used in that case.
awesome, makes sense in light of what i’ve seen so far w/o having the chance to jump back in the pages yet. thanks mike!