Gzip HTTP Requests with NGINX

If you use NGINX, you probably care about performance, and one of the easiest website performance wins is to Gzip http requests. Gzip can not only increase the speed of your website, but also save bandwidth. I’ll show you how to Gzip http requests with your NGINX server in this post.
(more…)

NGINX 301 Redirects

NGINX is a great lightweight webserver, and the one this blog runs on. Having made many iterations including merging other blogs into it, and removing posts and entire sections, I’ve had to create a number of redirects for both user experience and search engine indexing. This post will show you how to create a variety of 301 Permanent redirects in your NGINX config file.
(more…)

Validation and Confirmation for Hidden Gravity Forms in WordPress

Today I was putting a Gravity Form in the footer of a site with long pages, hiding the form by default, and displaying it when a user clicks the contact link using a little jQuery. Since Gravity Forms shows validation and ( optionally ) confirmation messages on the form itself, this presented a problem when the form is submitted, and the page reloads, hiding the form again.
(more…)

How to Use Web Fonts with WordPress

There are a ton of choices if you want to use web fonts on your website. With those choices come different methods of adding them to WordPress. Let’s do it right, and avoid problems later.
(more…)

Mission Critical Hover States are Evil

You don’t have to build websites to know what a dropdown menu is, and how common they are. Almost every website in the last decade with complicated taxonomy has a dropdown, and clients expect them.
(more…)

Nesting Modernizr.js Selectors with SASS and Compass

If you’re going to use CSS3 properties in your designs, it’s a good idea to make sure you aren’t trying to apply them where they aren’t supported. Old browsers have a hard enough time trying to grok your newfangled HTML(5). Don’t confuse them with transforms and text shadow.
(more…)

I’m Starting a Personal Journal

I always thought of my next door neighbor Ray as my grandfather. Ray was an old WWI vet, retired trucker, and junior golf instructor who had a stack of hardbound journals he had written in for decades. I remember one of the things he shared about his Parkinson’s, was the difficulty writing in his journal. It had become a very important part of his life. I wish I had started one then, when I was a kid. Ray told me as much.
(more…)

Responsive WordPress Images

WordPress has a few default classes used for things like image alignment, galleries and other html output by core features. This is a combination of the styles found in the default WordPress TwentyEleven theme, and some modifications of my own. Include this snippet with your css to save a bunch of time building your responsive WordPress theme.
(more…)