Starting a Magento Theme
Duplicate these folders:
app/design/frontend/default/default
skin/frontend/default/default
(Don’t get me started about how awkward the folder structure is.)
Rename the duplicated folders to whatever you want (make them both the same).
FYI, the theme files under the app/ folder are for generated templates (things the system has to build when the site is viewed) and the theme files under the skin/ folder are for publicly viewable files (images, CSS, JavaScript).
Now go to your the admin area of your site and then System > Configuration. Then click Design in the sidebar and under Themes type the name of your theme folders (the ones you duplicated). Just once. One name.
Now the fun really begins. Time to dig into a bluemillion .phtml and .xml files. I’m still not too far along here, but I have determined that to change the media that you load in most pages, you need to edit:
app/design/frontend/default/your_theme_name/layout/page.xml
There you’ll se a bunch of crap like this:
<action method="addCss"><stylesheet>css/reset.css</stylesheet></action>
Have fun.
Comments
I wont mention how awkward the folder structure is…….. OK I CAN’T HELP IT!!! The folder structure is awkward. Pretty frusturating. If you can make any sense out of the files, I would love to see them layed out. The Screencasts at Magento’s website on design are kinda ok, but basically showing you the most minumum. I guess I’m supposed to know where to go from there. Any link or isight to good tutorials are highly appriciated! Thanks.
“Awkward” is too kind. I believe they set out with the goal of making it so screwed up and convoluted that only an unemployed person who had nothing else to work on could figure out how to make a decent site. Their documentation is inaccurate and insufficient.
What do you think about that?