Title: mpdesigner11's Replies | WordPress.org

---

# mpdesigner11

  [  ](https://wordpress.org/support/users/mpdesigner11/)

 *   [Profile](https://wordpress.org/support/users/mpdesigner11/)
 *   [Topics Started](https://wordpress.org/support/users/mpdesigner11/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mpdesigner11/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mpdesigner11/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mpdesigner11/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mpdesigner11/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mpdesigner11/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Conditional Header on Single Product Page](https://wordpress.org/support/topic/conditional-header-on-single-product-page/)
 *  Thread Starter [mpdesigner11](https://wordpress.org/support/users/mpdesigner11/)
 * (@mpdesigner11)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/conditional-header-on-single-product-page/#post-10462899)
 * SOLUTION:
 * This function wasn’t working in Functions.php – because of the theme’s custom
   Single-Product.php implementation.
 * I replaced get_header ( ‘shop’ ) in single-product.php with:
 * if ( is_product() ) {
    if ( has_term( ‘bracelets’, ‘product_cat’ ) ) { get_header(‘
   project’); } elseif ( has_term( ‘jewelry’, ‘product_cat’ ) ) { get_header(‘project’);}
   elseif ( has_term( ‘cards’, ‘product_cat’ ) ) { get_header(‘company’); } elseif(
   has_term( ‘t-shirts’, ‘product_cat’ ) ) { get_header(‘company’); } }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Conditional Header on Single Product Page](https://wordpress.org/support/topic/conditional-header-on-single-product-page/)
 *  Thread Starter [mpdesigner11](https://wordpress.org/support/users/mpdesigner11/)
 * (@mpdesigner11)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/conditional-header-on-single-product-page/#post-10451068)
 * Fantastic, thank you [@jessepearson](https://wordpress.org/support/users/jessepearson/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Conditional Header on Single Product Page](https://wordpress.org/support/topic/conditional-header-on-single-product-page/)
 *  Thread Starter [mpdesigner11](https://wordpress.org/support/users/mpdesigner11/)
 * (@mpdesigner11)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/conditional-header-on-single-product-page/#post-10446120)
 * Thanks [@jessepearson](https://wordpress.org/support/users/jessepearson/) – appreciate
   the feedback!
 * Just a quick follow up, where would I put that code? Function.php? Single-Product?
 * Cheers,
    mp
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Conditional Header on Single Product Page](https://wordpress.org/support/topic/conditional-header-on-single-product-page/)
 *  Thread Starter [mpdesigner11](https://wordpress.org/support/users/mpdesigner11/)
 * (@mpdesigner11)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/conditional-header-on-single-product-page/#post-10440942)
 * Hi ryanr14,
 * Thanks for the response! At this point it’s just a logo change. My client has
   two separate product categories and they’d like to brand them differently. I 
   was able to create a separate header for one of the brands and reference it (
   header-project.php) and have created another header (header-company.php), but
   just need some guidance on how and where to put the conditional statement based
   on product type?
 * Cheers,
    mp 🙂

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