Tutorial: Do you want to create own Magento Theme? Let’s Start Now! – Part 1

Magento

You are a developer and you have base knowlege about Magento. You want to create own Magento Theme by you with your own style. Let’s start now. We will provide tutorials to create new Magento Theme step by step.

The first you need to understand template structure of Magento. Have many things to learn: XML file, block template, Block Class, CMS page, Static block,…

– XML file: Magento use XML to define template and block. A template have many block: head, header, footer, left navigation, content,… We have to know how to define a new template ?

Example:
– This is the xml code i use to create new template:

<layout version=”0.1.0″>
<default>
<block type=”page/html” name=”root” output=”toHtml” template=”magentotutorial/helloworld/simple_page.phtml” />
</default>
</layout>

– The above code use to create a new block “sample_page”. This block in template “magentotutorial”. You can create a child block inside this block:

<layout version=”0.1.0″>
<default>
<block type=”page/html” name=”root” output=”toHtml” template=”magentotutorial/helloworld/simple_page.phtml”>
<block type=”page/html” name=”childe” output=”toHtml” template=”magentotutorial/helloworld/simple_page/child.phtml” />
</block>
</default>
</layout>

– See more at: https://web.archive.org/web/20140426090657/http://magentowordpresstutorial.com/tutorial-do-you-want-to-create-own-magento-theme-lets-start-now-part-1.html#sthash.SZ9u54Cs.dpuf