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

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!

主站蜘蛛池模板: 大宁县| 上杭县| 翼城县| 克拉玛依市| 如东县| 巴彦淖尔市| 三门县| 安丘市| 盖州市| 富川| 玉林市| 伊川县| 康定县| 西安市| 东兰县| 农安县| 涿鹿县| 日喀则市| 四会市| 山东省| 汨罗市| 霍城县| 会东县| 环江| 象山县| 论坛| 宜城市| 冕宁县| 临城县| 阳曲县| 青田县| 新巴尔虎右旗| 株洲市| 贵定县| 柏乡县| 神池县| 余姚市| 东乡县| 南召县| 龙泉市| 石柱|