All posts by Scott

iPad big (770)

Responsive Images in WordPress with Picturefill

Images are the single biggest performance hog on most websites. Serving the same big images to a desktop and a mobile device kills your site’s performance, and makes you lose site visitors. We need to be able to serve a high resolution image to a desktop, and a smaller image to a mobile device. Responsive

Font Awesome 4

Changing Font Awesome version 3 to 4

I’m a huge fan of icon fonts, and Font Awesome is the best one. Version 4 is out, and if you are updating from version 3, here’s what you need to know.

Make your WP site a mobile web app with meta tags

Even if your website isn’t a traditional mobile app, you can still let visitors save your site to their home screen as an app icon. After they bookmark your site to their home screen, they can click the icon and open up your site full screen, just like a normal app. This is done with

V

Vertical Media Queries for Above the Fold Content

What the heck is a vertical media query? We’ve all used media queries that look something like this: @media screen and (max-width: 25em) {} A vertical media query targets height instead of width: @media screen and (max-height: 15em) {} Why would you do that?

R

Responsive Off Canvas Navigation Menu

Known as off canvas menus, shelf menus, or panels, they are commonly seen in apps, but they are getting popular in responsive desktop sites as well. There have been a lot of articles written on this, but I wanted to make a really simple, understandable version. This is basically a simple version of David Bushell’s

I

Incredibly easy way to optimize jpg images in Photoshop

Cut jpeg (.jpg) image size down by up to 63% in Photoshop without losing quality. What I normally do with .jpg images is save them at about 70% quality in Photoshop. That seems to be a safe place to retain acceptable quality while still slimming down file size. This trick absolutely blows that technique out

P

Protocol Relative URLs

Ever use a script that had a url without the http like this? <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script> I always wondered what that was about. Turns out it allows your browser to download the resource through http or https, which gets rid of any pesky warning messages about “Non-secure items” when viewing an https page.

A

Add a custom logo uploader to the WordPress theme customizer

The WordPress theme customizer is famous for being able to change your theme colors in real time, but did you know it can handle almost any type of theme option? You can add layout options, image uploaders, text fields, and lots more. The possibilities are endless! There is almost no need for theme options pages

B

Basic jQuery for Designers

jQuery is like magic. It’s like the pixie dust of the web, sprinkle some here and animate a dead object to life, or there and add a subtle transition for a smoother user experience. If you’re like me, you waited way too long to learn jQuery. I hesitated to learn it because I’m not a

S

Simple jQuery Drop Down Menu in WordPress

There are lots of ways to make drop-down menus, and usually my preferred method is all CSS. However, an all CSS drop down menu relies on the :hover selector, which is not always desirable. It’s fine on desktops, but mobile touch devices don’t play nice with :hover. You can’t really hover with your finger, you

Being a business owner is hard. I'm trying to get better in business and life, enter your email if you want to join me.
Holler Box