Posts by this Author

Add login/logout to WP’s built-in menus

Here’s an easy way to add WordPress’s built-in login/logout link to the your menus. I have it coded to work with Genesis’s menus, but you can make this work with any theme by changing the theme_location argument.

Gravity Forms / jQuery UI Datepicker Too Narrow; or, { box-sizing: border-box }

Gary Jones whipped up an especially helpful little tip for Gravity Forms based on Paul Irish’s border-box advice. Seriously helpful stuff. As Paul said: One of my least favorite parts about layout with CSS is the relationship of width and padding. You’…

Types & Views: check for image; if none, display default image

This comes in handy if you don’t want a big empty hole where a graphic or photo should be. Comes in handy when someone forgets to upload an image.

Add a password-protected directory to a WP site

I had a client ask me today if I could set up a secure directory she could use for uploading via FTP some large files needed by another organization. Normally this is a very easy thing to do in cPanel – she’d done it before, years ago – but she couldn’…

Add scroll easing to Genesis “Return to Top of Page” link

There’s one slightly cool feature built into Genesis that’s always bothered me a bit because it’s so jarring: the Return to Top of Page link in the footer just slams the browser window back to top. I happened across a pretty lightweight way to make tha…

S3 Flowshield: Why does my video take forever to load?

Since this has tripped me up twice – with no excuse for the second time since Flowshield support had given me the friggin’ answer two months prior – I figured I’d post this here so I can find it again. The reason it takes forever for videos to start pl…

Remove Post Meta or Post Info from Custom Post Types

It happens fairly often that we have a client who needs a custom post type as well as the usual blog/news feature. We need post meta and/or post info to show up for the news posts, but we don’t need that information on the custom post type since that i…

Remove Items from WordPress Admin

Sometimes our clients don’t need access to everything WordPress offers — most often, the Links and Comments areas. Rather than cause confusion, we just hide what they isn’t needed:

Move Titles Around in Genesis

From time to time, we like pulling titles out of the normal flow of the page and put them somewhere else. Like above the content-sidebar div (or whatever div holds the page content). This causes problems, though; a customized homepage layout ends up wi…

Evaluate Types & Views Content; Don’t Display Empty Fields

Now that we’re all in love with Types & Views, we had to figure out how to evaluate custom fields to determine whether they should be displayed. After an hour of beating our heads against the wall, we came up with the code below. The thing that tri…