Categories
Code

Add body class if post has a featured image in WordPress

This WordPress function adds a body class ‘has-featured-image’ if the current post has a featured image assigned.

add_action('body_class', 'ed_if_featured_image_class' );
function ed_if_featured_image_class($classes) {
 if ( has_post_thumbnail() ) {
 array_push($classes, 'has-featured-image');
 }
 return $classes;
}
Categories
Cars Dutton Legerra

Dutton Set Up

Took the Legerra to Mick Gardner Racing today for a suspension set-up, what a really nice chap.

Categories
Graphic Design Me Web Design

Helvetidoodle on diy.com Homepage

Helvetidoodle on diy.com homepage
Helvetidoodle on diy.com homepage

Right now B&Q the DIY giant are using Helvetidoodle as the most prominent element on their homepage. Fancy that!

Categories
Computers

Fix Server Execution Failed message in Windows Media Player

Every now and then, when you try to open a media file, Windows Media Player does nothing for about 30 seconds and then comes up with this cryptic dialog box:
Server Execution Failed dialog box

Luckily it’s easy to fix:

  1. Open Command Prompt as Administrator (Click Start, Type cmd, right Click Command Prompt, select Run as Administrator)
  2. Type regsvr32 jscript.dll and press enter.
  3. A dialog will pop up. Click OK
  4. Now type regsvr32 vbscript.dll and press enter again.
  5. Click OK again
  6. Close Command Prompt and try opening the file again!