WordPress Themes: Object Oriented PHP Code is Very Important
I'm doing a heavy rewrite of my main WordPress theme that all of my other themes are based on. As someone who has spent a lot of time writing code, one of the things that has been bugging me about WordPress themes is all the duplication of HTML.
Tip: Always Comment overflow: hidden; CSS Rules
CSS comments aren’t always helpful, they tend to muddle the code and once you get good at naming classes and ids your CSS should tell a pretty clear story. But one thing that should always be clearly commented is the use of overflow: hidden; This rule is used mostly for a couple of reasons, and almost [...]