Product template page best practices
-
My wife’s jewelry site uses a custom theme I built for her. Initially we noticed that the woocommerce product display page broke the page.php template. After a google search I found this tutorial which recommends duplicating the page.php template, renaming it to woocommerce.php and replacing the entire loop with
<?php woocommerce_content(); ?>.It worked well and fixed our problem but I know that in WP best practices, this line of code is usually wrapped inside a conditional statement. Am I good to go as is or should I insert this code inside an if…endif statement. If so, what should the condition be?
The topic ‘Product template page best practices’ is closed to new replies.