Center align a WordPress Image Gallery
I’ve been trying for the last day or so to center align the default WordPress image gallery within a page– without any luck. Finally figured it out this morning, here’s how I did it: Modify...
View ArticleJustify Last Line in Paragraph – CSS Hack
The specs for CSS3 include all sorts of great options for justifying text, but those of us with non-CSS3 browsers are left out. One quick hack for justifying the last line in a paragraph is to add a...
View ArticleCSS3
I’ve just implemented a few CSS3 elements for those browsers that support it (and graceful degradation for those that don’t). Rounded borders, with drop shadows: Drop shadows on text: For more...
View ArticleWordPress 3.0 Upload Image Fix
After upgrading to WordPress 3.0, I could no longer upload media in the visual editor. Instead of popping up in the lightbox, a whole new page would load, and no images would attach to posts. In the...
View ArticleConditional Loading Facebook Scripts
I’m working on a client project currently which employs a “Like” button on each of the post pages– but nowhere else on the site. You can see here, Facebook requires 253.2 KB worth of scripts (54% of...
View ArticleJQuery Dropdown Message on First Login
I wanted to have a sliding dropdown (Twitter style) displayed to my users after logging into a WordPress site for the first time. Had to hack this together from a few different sources, so I’m posting...
View ArticleAnalytics tracking for Lightbox 2 image galleries
I use the Lightbox 2 plugin for the image galleries on this site— it’s a pretty great plugin: loads fast, looks nice, easy to implement… but one gripe I’ve had for a while is the inability to track...
View ArticlejQuery .fadeIn() opacity bug in Chrome and IE 8
I kept encountering this strange glitch in Chrome when using jQuery’s .fadeIn() effect on a text element. The text would fade in properly, but then flicker to a slightly bolder weight. The text wasn’t...
View ArticleCheat Sheet for the WordPress bundle in TextMate
There wasn’t one of these already, so I made one. Based on the WordPress TextMate Bundle by Shawn Parker & Top Frog Graphics. GDE Error: Unable to load profile settings
View ArticleHow to include a custom stylesheet on a WordPress options page
(or, “how to put a bunch of error messages in a blog post for effortless traffic”) Let’s start with what doesn’t work, beginning with including the options page file itself: If you’re defining a base...
View Article