During the process of creating my first public WordPress theme one thing was very important to me – I wanted the theme to be useful to as many people as possible. To reach this goal, I knew that I would need to make sure that my theme could be used in any language. Luckily, WordPress core provides a few different functions that makes this pretty easy to do. If this is a new topic for you, please read more about Internationalization for WordPress Developers in the codex.
* { box-sizing: border-box; } FTW
Paul Irish on HTML element widths being inclusive of padding at all times. That is to say if I define my box as 200 pixels wide then it should stay at a total of 200 pixels, no matter what I use for its padding value.
The money shot is as follows:
* { /* apply a natural box layout model to all elements */
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
Also, an interesting read on using * and its impact on performance.
You might get up in arms about the universal * selector. Apparently you’ve heard its slow. Firstly, it’s not. It is as fast as h1 as a selector. It can be slow when you specifically use it like .foo > *, so don’t do that. Aside from that, you are not allowed to care about the performance of * unless you concatenate all your javascript, have it at the bottom, minify your css and js, gzip all your assets, and losslessly compress all your images. If aren’t getting 90+ Page Speed scores, its way too early to be thinking about selector optimization.
As with most CSS, there’s no one-size-fits-all choice for this. At times it makes sense (it’s used on the WordPress.com Theme Showcase, selectively though) and at other times it doesn’t.
I like it, though.
Head over to Irish’s site to weigh in or drop a comment here with your thoughts.
Jot Down Your Thoughts with a Note-Taking Application
Ever since I started digging into themes at Automattic, I have found that I’ve been keeping way more notes than ever before — I jot down everything: common procedures, code snippets, tidbits from discussions, links, and random ideas.
At first I was just using a text file. However, after several months, my “everything.txt” file was growing massively out of control. I decided that a dedicated notes application would be a more efficient way to keep track of things, plus offer much more functionality.
Dusk To Dawn Now Available for WP.org Sites
Dusk To Dawn — a dark theme that melds old-style organic ornaments with modern design and typography, originally developed exclusively for WordPress.com and it’s received great positive feedback — is now available in the official WordPress Themes Directory.
Using Media Queries to Make a Clean Break from Legacy Browsers
There’s a nice, clean, javascript-free, approach to mobile-first design in Joni Korpi’s post Leaving Old Internet Explorer Behind. Adopting it sounds pretty tempting.
Twitter Bootstrap and WordPress Theme Frameworks
If you haven’t yet you should make some time to read Building Twitter Bootstrap at A List Apart. Especially if you’re interested in building a WordPress Theme Framework or WordPress Starter Theme.
Twitter Bootstrap is essentially a collection of HTML-CSS templates and some Javascript put together to “help designers and developers quickly and efficiently build awesome stuff online.” It sounds an awful lot like a lot of WordPress Theme Frameworks and Starter Themes, right? It looks like one too.
Optional Markup for Optional Post Titles
Whenever I write a post to publish on a WordPress powered website, I start by crafting a title. While I do this 99.9% of the time, there are definitely situations where no title is needed for a post.
Vertical Rhythm Project
A project to link the aesthetic and discipline of modernist poster designs to the world of digital and dynamic grids, manifested by a series of WordPress themes, adapted from typographical posters.
Some might know already about but this is worth to get a spotlight. Vertical Rhythm is a really cool project by Edit / Nitzan Hermon.
Unsuck Your Jargon
What terrible business jargon do you need unsucked?
Awesome writing tips over at unsuck-it.com, by the fine folks at Mule Design. Go read it, mmm-kay? That’d be great.
The blog runs on WordPress, natch.
What Do You Really Need in a WordPress Starter Theme?
I think it’s safe to say that I’m somewhat obsessed with themes that help you get your WordPress projects started quickly. Most likely because I’ve been there, staring at an empty project folder wondering where I should begin. Well, you shouldn’t have to stare at that empty folder for any project. Even when you’re starting from scratch you’re probably not really starting from scratch, right? You’re taking an existing WordPress theme, either your own or someone elses, and hacking at it until it’s something new. That theme is your Starter Theme.
But not all Starter Themes are created equal. If you’re using the same theme again and again and always adding the same code to it, well, shouldn’t that code always be in there in the first place? Or how about the reverse? If you’re always cleaning out the same code from your theme is that really a great starter theme? Should it have sample theme options? Or a CSS reset? Basic styles? How much style? A grid system? … The questions could go on for a while.
So, what are you using for your Starter Theme? And what do you think you really need in a WordPress Starter Theme?