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

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.

主站蜘蛛池模板: 越西县| 南华县| 关岭| 茶陵县| 吉木乃县| 集安市| 滦南县| 鹤岗市| 庄河市| 报价| 泉州市| 赤水市| 沾益县| 陆川县| 泰和县| 玉屏| 正安县| 长海县| 琼海市| 曲阜市| 调兵山市| 乌拉特中旗| 皮山县| 长丰县| 布拖县| 曲周县| 东辽县| 兴山县| 阿勒泰市| 太和县| 双峰县| 兰州市| 阿拉善右旗| 沂南县| 湘乡市| 河南省| 铁岭市| 溧阳市| 红安县| 云安县| 上栗县|