- Learning Magento Theme Development
- Richard Carter
- 148字
- 2021-09-03 10:05:00
Creating a new Magento theme
As you saw in Chapter 1, Introduction to Magento and Magento Themes, a Magento theme can encompass very few files or a large number of files.
Firstly, create the new directories in your Magento installation to contain your new theme's files:
app/design/frontend/default/m18/template
app/design/frontend/default/m18/layout
app/design/frontend/default/m18/locale
app/design/frontend/default/m18/etc
skin/frontend/default/m18/css
skin/frontend/default/m18/images
skin/frontend/default/m18/js
Once you have created these directories, you can create a file called styles.css
in the skin/frontend/default/m18/css
directory. To be able to test that your new skin is enabled, add the following to your styles.css
file:
body { background: red; }
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Your next step is to enable your newly created Magento theme!
- 深入理解Android(卷I)
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- C語(yǔ)言程序設(shè)計(jì)(第2版)
- PyTorch Artificial Intelligence Fundamentals
- Mastering C# Concurrency
- 征服RIA
- 深入淺出PostgreSQL
- OpenStack Orchestration
- Mastering Android Development with Kotlin
- Maker基地嘉年華:玩轉(zhuǎn)樂(lè)動(dòng)魔盒學(xué)Scratch
- R Data Science Essentials
- 編程改變生活:用Python提升你的能力(進(jìn)階篇·微課視頻版)
- Java Web開發(fā)實(shí)例大全(基礎(chǔ)卷) (軟件工程師開發(fā)大系)
- 硬件產(chǎn)品設(shè)計(jì)與開發(fā):從原型到交付
- Implementing Domain:Specific Languages with Xtext and Xtend