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

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.

主站蜘蛛池模板: 峨眉山市| 原阳县| 金昌市| 南昌市| 治县。| 蓬溪县| 扶沟县| 泰和县| 承德市| 江门市| 阳曲县| 叶城县| 巴南区| 五家渠市| 苍梧县| 顺平县| 启东市| 杭州市| 利津县| 汤原县| 那曲县| 泸定县| 扶沟县| 长海县| 临江市| 化德县| 库尔勒市| 新丰县| 蒙城县| 句容市| 宁南县| 大丰市| 德清县| 巨野县| 准格尔旗| 绥中县| 新蔡县| 普宁市| 收藏| 聊城市| 沐川县|