Title: Theme Conflict
Last modified: January 3, 2019

---

# Theme Conflict

 *  Resolved [vlsbilodeau](https://wordpress.org/support/users/vlsbilodeau/)
 * (@vlsbilodeau)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/theme-conflict-52/)
 * I inherited a custom theme and tested deactivating to confirm that my issue is
   with the theme. The shop, cart, and checkout pages are okay, but the product 
   detail page displays blank. What parent page from the theme does the single-product.
   php use?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/theme-conflict-52/#post-11050431)
 * The WooCommerce file is:
    wp-content/plugins/woocommerce/templates/content-single-
   product.php
 * If your theme overrides this file, the override will be at:
    wp-content/themes/
   your-theme-name/woocommerce/content-single-product.php
 * In either case, that file makes calls to several other template files for the
   individual parts of the page. In turn, these other files will call functions 
   in various WooCommerce includes. Its likely you’ll need PHP skills or a developer
   to track down the problem.
 *  [codeprint](https://wordpress.org/support/users/codeprint/)
 * (@codeprint)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/theme-conflict-52/#post-11050564)
 * Have you tried looking at the console in Google Chrome? Often times this will
   give you a hint on what is causing it.
 *  Thread Starter [vlsbilodeau](https://wordpress.org/support/users/vlsbilodeau/)
 * (@vlsbilodeau)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/theme-conflict-52/#post-11066670)
 * I figured out where the issue stems from. The custom theme single post template
   points at another custom template which is nothing like the standard theme structure
   and overwrites everything for some work around to display posts differently, 
   so woocommerce doesn’t work. Is there a way to call out an if statement that 
   says if the post is a woocommerce post then do this instead?
 * Like:
    if have_posts do this if have_posts-woocommerce do this
 * I’ll hunt around the internet for an answer too.
 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/theme-conflict-52/#post-11282943)
 * In case you’re still looking for this, there is a conditional tag you can use
   to check and see if this is a WooCommerce product being viewed.
 *     ```
       is_singular( 'product' ); {
   
       // run your code here if it's a product
   
       }
       ```
   
 * If you’re curious about the `is_singular()` conditional tag you can read more
   about it at [https://developer.wordpress.org/reference/functions/is_singular/](https://developer.wordpress.org/reference/functions/is_singular/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Theme Conflict’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/theme-conflict-52/#post-11282943)
 * Status: resolved