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

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.

主站蜘蛛池模板: 鄂托克旗| 安新县| 隆林| 静安区| 岳阳县| 灵川县| 封丘县| 大英县| 乌鲁木齐县| 台州市| 古交市| 墨竹工卡县| 沁水县| 长武县| 庆元县| 佛教| 当阳市| 临泉县| 洛浦县| 上高县| 吉隆县| 新兴县| 大化| 高密市| 乐至县| 张家港市| 宜兰市| 邵阳县| 浮山县| 即墨市| 双柏县| 甘洛县| 英超| 台南市| 辛集市| 洮南市| 封丘县| 桐梓县| 陇南市| 平谷区| 新巴尔虎右旗|