Dynamic Secondary Pages in WordPress

$parent_id = $post->post_parent; $subnav_exists = false; $args = array( ‘depth’ => 1, ‘child_of’ => $parent_id, ‘title_li’ => ‘’ ); $args2 = array( ‘depth’ => 1, ‘child_of’ => $parent_id, ‘title_li’ => ‘’, ‘echo’ => 0 ); $subnav_count = wp_list_pages($args2); if ($subnav_count and $parent_id != 0) { $subnav_exists = true; } Read More

War of the Standards… 2012-ish

I’m not a fan of browser prefixes, but that doesn’t mean I don’t use them. And really, we all should if we’re using the latest features. What we shouldn’t be doing is simply writing -webkit-whatever. That’s how you isolate large groups of users and get into “well, the cool thing worked on my machine at… Read This Article Read More

A Quick State Selection

In working on a web application I came across the old problem of selecting a state from a list. If you’ve ever had to build a select element with all of the states listed, it’s not so much fun. So, I wrote two PHP functions that help speed that along, which is very useful if… Read This Article Read More

Overcompensation And Other Obvious Pitfalls of Using HTML5 In The Real World

And of course that title is a bit overstated, but so is the hype around HTML5 if we’re honest. I love HTML5 of course, I really do. I think the new APIs will change the web forever in the best possible way. But there’s a moment where we have to look at what we’re leaving… Read This Article Read More

A Quick nofollow for Drupal 7

I built a site for a client in Drupal 7, and it quickly started to gather spammers. I implemented Mollom to filter out a bunch of the spam, but as icing on the cake, to prevent empowering spam links and a deterrent from posting spam comments in the first place, I wanted to make sure… Read This Article Read More

Sometimes Using IDs in CSS Just Makes Sense

Recently Chris Coyier and Harry Roberts opened up the conversation for CSS best practices and people are chiming in. I won’t disagree that the majority of the things Harry mentions are dead-on accurate, though whether or not I or anyone else actually follows them to the letter is debatable. But one of the personal guidelines… Read This Article Read More

Don’t Over-Think Your CSS (Part 1)

Over the years I’ve developed a love for making HTML and CSS as streamline as possible. Consider this piece of content for a very lean carousel. (You’d probably need more to actually make it work, but the point here is to show a principle of CSS, not to build a carousel.) <div id=”this_specific_thing” class=”carousel”> <div… Read This Article Read More

A Little HTML/CSS/JS in a CMS Never Hurt Anyone, Right?

For years we’ve been talking about separating JavaScript from HTML, and CSS, but there’s always a temptation to continue writing HTML and CSS into the wrong parts of our content management systems. I wasn’t willing to say this before, but it’s a design problem. And it really is a tough line to walk. For as… Read This Article Read More

Better Team Projects with Grunt JS

For years I pre-processed my SASS/LESS files and minified my JavaScript with apps like Codekit. And while those are great, they don’t always work nicely with whatever apps your coworkers are using. That’s where Grunt JS shines. What I Was Doing Because I had mostly been working by myself on things, I was running CodeKit… Read This Article Read More

To Framework, or Not To Framework

When I interviewed for my current role, I was asked “what would you say you’re the best in? What’s your specialty?” I thought, as the question was being asked, that my honest answer was going to cost me the role. My exact response is really blurry at this point, but the gist of it is… Read This Article Read More

© 2021 All rights reserved.