0

I have used the same theme for my multi-store, I need to change header and footer completely for my second store.

How can add 2 headers and 2 footers for my multi-store?

1 Answer 1

1

1)As per magento standard, Create new theme and assign that theme to the new store(which you want to change header and footer). Now just copy headed.phtml and footer.html and past it in new theme, update those file html or CSS as you want.

2) Add magento store id or code condition for header and footer.

A) using store id:

<?php if (Mage::app()->getStore()->getId() == 'yourStoreID'){ ?>

         //Insert your HTML or JS Code Here

    <?php } else { ?>

         //insert your HTML or JS Code Here

    <?php } ?>

B) Using store code

<?php if (Mage::app()->getStore()->getCode() == 'yourStoreCode'){ ?>

     //HTML or JS Code Here

<?php } else { ?>

     //HTML or JS Code Here

<?php } ?>

Hope above solution will work for you.

9
  • yes good solution,, but i need to work the same theme with two stores, and i want to change header and footer for my 2nd store, how can i archive this.
    – zus
    Commented Dec 26, 2017 at 6:40
  • I mean, header and footer only change, remaining everything same. So how can i change header and footer.
    – zus
    Commented Dec 26, 2017 at 6:41
  • Yes, you can use 2 option add store ID or code condition for updating header and footer for another store. Please let me know if you want in detail?
    – Nits
    Commented Dec 26, 2017 at 6:43
  • Yes, i need details of changing header and footer
    – zus
    Commented Dec 26, 2017 at 6:44
  • Please check my updated ANS. Please accept this as answer if it is helpful to you.
    – Nits
    Commented Dec 26, 2017 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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