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

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!

主站蜘蛛池模板: 沁阳市| 海门市| 子长县| 新竹县| 远安县| 佛坪县| 广丰县| 游戏| 疏勒县| 阜平县| 河池市| 阿克陶县| 腾冲县| 晋中市| 鄱阳县| 石首市| 科技| 玉门市| 曲松县| 江油市| 滦平县| 博客| 牡丹江市| 福泉市| 廉江市| 梅河口市| 平果县| 东光县| 鹿邑县| 来凤县| 内黄县| 玉山县| 桃源县| 西乡县| 都安| 凤翔县| 南靖县| 古蔺县| 盐山县| 密云县| 卢湾区|