官术网_书友最值得收藏!

Magento theme hierarchy

Magento has a hierarchy in place for its themes, which tells the system where to look for files if multiple themes are active on different stores on your website. As an example, think about a simple Magento store setup like the one you saw earlier, as demonstrated in the following diagram:

Now, imagine that your store has a theme called newtheme installed at the store view level. The Magento theme here requests a file called styles.css in the most specific interface and package first, so if you have a custom theme enabled, Magento will look in /skin/frontend/default/newtheme first. If it's not found in these directories, Magento looks in the default interfaces next: /app/design/frontend/default/default or /skin/frontend/default/default. Next, Magento will look in the base directories: /app/design/frontend/base/default or /skin/frontend/base/default. If the specified file is not found after that, Magento will encounter a rendering error.

So, the deeper down the hierarchy tree of themes the file is, the more specific it is and the more precedence it takes over other more general files.

主站蜘蛛池模板: 车致| 石景山区| 通州市| 通州市| 长治县| 波密县| 会昌县| 望江县| 庆安县| 迁安市| 正安县| 东乌珠穆沁旗| 开平市| 金门县| 土默特左旗| 兴海县| 尤溪县| 瓮安县| 湘阴县| 伊春市| 雷州市| 诸城市| 沿河| 沂源县| 车致| 徐水县| 广饶县| 潢川县| 惠水县| 娱乐| 扬州市| 自治县| 喀什市| 阿拉善左旗| 宣恩县| 黎平县| 五常市| 霍山县| 临城县| 北宁市| 正镶白旗|