Should Magento's blank theme still be used as a theme baseline (Magento version 1.7)?

牧云@^-^@ 提交于 2019-12-10 15:38:54

问题


A good number of the tutorials I've found on Magento theme development recommend starting off with using blank as a guideline for making your own custom theme. A lot of these articles are pretty old, as of the current version (1.7), is this still the case?

P.S. - If there are any good/relevant theme development articles out there, aside from Magento's official design guide, please feel free to link them.


回答1:


In my opinion you should never 'carve out' your own theme from a base theme. You aren't learning theme development in its entirety. You will potentially run into unforeseen consequences. You will likely have excess code and templates by the time you are done.

I wrote a Magento 1.6.1 tutorial on creating a theme that should hold up for 1.7:

http://zaclee.net/magento/make-magento-1-6-theme-from-scratch

If you run into any problems with 1.7 let me know and I'll be glad to take a gander.




回答2:


I would agree with the above answer in the sense that converting an existing theme (ie a commercial theme you've purchased) to fit a design you've been given or done yourself can be more consuming. You end up doing more deleting than adding, and inevitably end up with a tonne of code that isn't being used (because taking it out might cause problems, the deadline is approaching....sod it, it's only a few Kb, you just leave it in).

However I disagree with the statement that the Magento blank theme will result in excess code and templates. For a start you only pull in the templates you need and the theme is about as bare bones as it gets. I always use the blank theme as a basis. It may well be the case that I am not then learning theme development in it's entirety but the work has to go out, bills have to be paid - and I'm not about to sit and build everything from scratch every time.




回答3:


To further this discussion, for some time I have really been bugged by the default CSS that Magento ships with. It is a pain to work on, and when you start developing in an environment where multiple people are working on the CSS, you inevitably run into CSS Kudzu.

It's been on my plate for awhile to completely rewrite the default CSS to something more maintainable and trimmed down, but like rabmcnab mentioned, there are deadlines, bills to pay, etc.



来源:https://stackoverflow.com/questions/11123034/should-magentos-blank-theme-still-be-used-as-a-theme-baseline-magento-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!