Magento Expert Forum - Improve your Magento experience
How to Create a Magento theme from scratch
Probably the first thing you will do when starting a new Magento project will be to create a Magento theme that will have custom styling and functionality. Although creating a Magento theme is a pretty simple thing to do (just ask any certified frontend developer), by not following Magento recommendations and rules you can easily make your life a bit complicated. Today I’ll be taking a look into the basics of Magento Theme Development : How to Create a Magento theme from scratch.
Read the article at : http://www.magesolution.com/blog/cre...theme-scratch/
View more threads in the same category:
Thanks for your article its very usefull to every magento developer, thanks again.
Last edited by yasar; 07-10-2015 at 06:25 PM.
Reason: type mistake
Super detailed post, You can learn pretty much everything about Create a Magento theme from here.
Excellent post. Very easy and simple way to understand how to create theme and it's structure. Very useful for beginners. Thanks for share. Will you please share the same post for Magento plugins?
Good information in detail, You can pretty much everything about create magento theme from here. It is very useful for magento developer.
Magento Theme Development – from scratch!
Create Your Theme
The Magento themes development road is actually not all that long. To begin with Magento theme creation, you need to create a brand new design package in two folders:
For the purpose of this tutorial, we’re going to name our package “OurPackage”.
In your design package, you need to create a folder for your theme. We will call ours “OurTheme”.
Next, create 2 folders in the theme folder. These folders are your layout and template.
You then need to head over to the skin folder, open your theme folder and create 3 more folders:
Finally, you need one more – local.xml. Slot this in your layout folder and you’re all set.
Work With Your Theme
As good as Magento is, it still needs to be told what to do now and then. As you’re engaged in Magento theme development from scratch, you need to tell it which package and themes are your default’s.
Head on over to system > config > design.
You then need to tell it that you want to use the OurPackage design package.
Then, slot your theme name into all fields with the exception of the default field.
And that’s it! Your theme is all ready and raring to go.
But before you get too eager to start editing, let’s take a quick look at Magento’s fall back system. This is important for your Magento themes development.
Magento Fallback System
Magento’s fallback system is ridiculously powerful and gives you the chance to edit your themes without lots of duplicated files flying all over the place.
How does it work?
Well, Magento is made up of numerous small blocks which are routed to a single HTML file. If just one file is missing, you will be met with an alarming render error and your site won’t work. Oh no!
For this reason, your base package files should never be edited or deleted. Never. If one is deleted by accident, Magento won’t be able to fallback and you will be met with a render error.
If, however, your theme holds only your changed files, Magento will be able to fallback and look for their base counterparts. Which will basically save your bacon.
Being a newbie, I was looking for a way to learn Magento. Thanks to you for sharing this extremely informative post about Magento with help of which I learned how to start work on Magento. It consists of all what I was actually searching.