0

I use a this line of code in my sites in order to change my header (and hence my css) depending on what template I'm using:

<?php include ('otherHeader.php'); ?>

however, with woocommerce that doesn't appear to be an option for shops. My client has asked specifically that I separate his products onto two separate shop pages, which look different. I've already managed to separate the store into two pages through the menu using product categories instead of the shop page, but is there some sort of code I can insert into my archive-product.php file so that it will check which page it's on, and choose it's header accordingly?

closed as off-topic by Mark Kaplun, Pieter Goosen, markratledge, TheDeadMedic, Robert hue Mar 9 '15 at 8:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • close voted as woocomerce questions are generally off-topic, but your question is really about the theme that you use and without giving more details about it and why your method doesn't work it will be hard to help you. – Mark Kaplun Mar 5 '15 at 11:32
  • I'm writing the theme myself – Captain Dando Mar 5 '15 at 12:17
  • What kind of information do you need? – Captain Dando Mar 5 '15 at 12:24
1

I've found the solution to the problem myself. for anyone out there, surround your header call with the conditional 'is_product_category( 'day' )'. you can read more about it here:

http://docs.woothemes.com/document/conditional-tags/

Not the answer you're looking for? Browse other questions tagged or ask your own question.