- Learning Magento Theme Development
- Richard Carter
- 172字
- 2021-09-03 10:04:59
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.
- SOA實(shí)踐
- 神經(jīng)網(wǎng)絡(luò)編程實(shí)戰(zhàn):Java語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- Scratch真好玩:教小孩學(xué)編程
- 編寫(xiě)高質(zhì)量代碼:改善C程序代碼的125個(gè)建議
- Processing互動(dòng)編程藝術(shù)
- 征服RIA
- 編譯系統(tǒng)透視:圖解編譯原理
- QTP自動(dòng)化測(cè)試進(jìn)階
- TradeStation交易應(yīng)用實(shí)踐:量化方法構(gòu)建贏家策略(原書(shū)第2版)
- 焊接機(jī)器人系統(tǒng)操作、編程與維護(hù)
- 領(lǐng)域驅(qū)動(dòng)設(shè)計(jì):軟件核心復(fù)雜性應(yīng)對(duì)之道(修訂版)
- Android驅(qū)動(dòng)開(kāi)發(fā)權(quán)威指南
- Android應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)
- 算法圖解
- 進(jìn)入IT企業(yè)必讀的324個(gè)Java面試題