Basic issue with customizing product pages.
-
Hi, i’m simply trying to customize the look of the product pages of a new store that i am setting up and this is my first time attempting to customize Woocommerce in this way. My client is cash-tight and is using the stock twenty-twenty-two WP theme. I’ve done a decent amount of research on how to do this properly, but it doesn’t seem to take. Generally, I’ve initially tried following these instructions: https://woocommerce.com/document/template-structure/. My goal is to customize the html of the page, there are certain elements on the page that seem to be coded in such a way that i can’t identify them via css in order to set “display: none”, for example.
As a start, i have added the recommended theme support code to the theme’s functions.php file and have copied the single-product.php files from /woocommerce/templates/single-product.php to /themes/twentytwentytwo/woocommerce/single-product.php. In the top of the copied file, it also clearly indicates “* This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.”
The first step that i typically gut-check is to put some dummy code into wherever i “think” i’m customizing in order to verify that i’m headed down the right path. However, any var_dump messages that i put in the code here do not appear. I’ve even removed “the loop” completely from the copied-over single-product.php and still i don’t see any changes that would indicate that i’m working with my own customized page/template yet.
Am i missing a step or something here?
- The topic ‘Basic issue with customizing product pages.’ is closed to new replies.