WordPress
Detect Mobile Browser and Serve Up Alternate Content (or nothing)
The site we just built for faithandform.com has a pretty cool slideshow feature on the home page, serving up a portion of the four most recent issues’ cover images and tables of content. But it doesn’t work well at all on small mobile devices, so Joe and I spent some time poking around the tubes…
Read MoreFix Double Sidebar Problem with Genesis CPT Archives Plugin
Exclude Posts, Pages, or Categories from Search Results
I tend to use pages or categorized posts to fill widgets on home pages, because it provides users with an easy way to change various areas on their home page or sidebars. Sometimes, though, we don’t want that content to show up in searches. Here’s how to exclude them:
Read MoreForce full-width layout with Genesis and CPTs
I needed to force a full-width-layout on my single custom type page. After a bit of trial and error, I ended up with this code: Just replace CPTNAME with your custom post type name and you’re good to go.
Read MoreAdd 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.
Read MoreGravity 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’re busy defining widths to match your grid or general column proportions, then down…
Read MoreTypes & 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.
Read MoreAdd 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’t get it to work…
Read MoreAdd 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 that slicker – a little bit of JavaScript: And a…
Read MoreS3 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 playing in Flowshield is because of…
Read More