Web Development Archive

Internet Explorer 10 / IE11 – Drops Conditional Comments – Solutions

If you were expecting something good — sorry to disappoint you. This is a rant (though I tried to include some helpful code and a link for 2 methods of dealing with this). Regardless, IE10 dropping conditional comment support is OLD NEWS to many of you. When Internet Explorer 10 was released, Microsoft decided to

How to Fix: Internet Explorer YouTube Video Showing Above Fixed Element / Ignoring Z-Index

Internet Explorer has an issue? No way! Joking aside…Today I encountered an issue with YouTube iframes showing above a top-aligned, fixed navigation bar, which became obvious as you scrolled down the page and the video showed on top. This is not difficult to fix. You can modify the embed code pretty painlessly to get it

Drupal – Fix White Screen of Death!

Drupal can be an absolute mess to work with sometimes, especially when new to it. And generally speaking, you’ll encounter the White Screen of Death at least once in your Drupal experience if you do any sort of module or theme editing / creation. Luckily, it can be easy to fix. Just follow the below

WordPress – PHP for Simple Related Links (Using Categories)

Want to display posts from the same category as whatever post is being viewed? No problem. Simply copy the below and paste it into your theme wherever you’d like them to be displayed. Good spots: bottom of the post, footer, sidebar. This is set to spit out 5 posts right now. Change as needed. <?php

Outlook 2010 – Responsive Email Template Using Conditionals and Media Queries

Responsive design is thought of generally as just a technique for websites. People don’t generally think about the role it plays in emails. But they should. Designing for email is a different beast. If you thought designing for websites was a pain, then you haven’t had to deal with the different email clients out there

Drupal – How I Fixed “Trying to get property of non-object” / “array_flip()” Module Error

When moving items from a staging server over to a production server, you occasionally run into strange issues (especially when they’re not 100% identical). This particular server has some older, “secure” settings enabled (such as Safe Mode for PHP). When installing a Drupal module manually, things went well until I tried to use its upload

Web Design: Easy Image Placeholders

Whipping up a website and need quick image placeholders? You could just find random images on the web…or you can generate some instead! And that’s where PlaceHold.it comes in. This awesome website outputs images of any specified size easily. Want a 110x140px image? No problem! Link to http://placehold.it/110×140 What about that red blank icon? Sure,

WordPress – Running a Shortcode INSIDE of Theme Files

Many plugins utilize shortcodes for easy insertion. While these are normally geared towards being used in posts and pages, they can also be used in the theme files / template itself! And the best part? It’s simple to do. How simple? Well, one line of code is all it takes! <?php echo do_shortcode("[yourcode]"); ?> Easy

How to Fix – Fatal error: Cannot redeclare _wp_post_revision_fields()

I just encountered the following WordPress upgrade error when moving to 3.6 (though you may be experiencing it with WordPress 3.7 or newer): Fatal error: Cannot redeclare _wp_post_revision_fields() in /home/xxxx/public_html/xxxx/wp-includes/revision.php on line 25 Pesky, huh? Easily fixed though. Download the latest copy of WordPress, then connect to your site via FTP. Rename wp-includes (or delete

WordPress: How to Add More Upload Categories

Many websites upload a whole bunch of different file types to their website(s). This is done so easily through WordPress, that people feel compelled to put anything and everything up. Great, right? Yes and no. Doing so leaves you with a media folder jumbled with a whole bunch of different file types that have less