Magento – Magento Local XML not called

layouttheme

I was wondering why my Magento local.xml is not being called. I have a package with multiple themes.

Package

  • Default
    • /layout/local.xml
  • Theme1
    • /layout/local.xml
  • Theme2
    • /layout/local.xml

I'm using Theme1 but the local.xml being called is from the Default theme. What I wanted was to use local.xml from Theme1. Any idea why this is not working?

Best Answer

Magento offers the possibility to use templates from one theme and layouts from an other one.
Even if this sounds nice, I don't think anyone uses it (I ma be wrong) because it can confuse the developers.
To avoid this, make sure that in System->Configuration->Design->Themes you set the same value for the fields Templates and Layout, the name of your theme.
If one of these is left blank the resources from the default theme will be used. (Theme1).