Remove input field focus

textarea:focus, input:focus{
    outline: 0;
}

I always forgot this rule & forget to add it to my stylesheets. This is what separates the men from the boys.

Jack turns 1

20111002-113828 PM.jpg
20111002-113849 PM.jpg
20111002-113909 PM.jpg
20111002-113927 PM.jpg
20111002-114004 PM.jpg
20111002-114026 PM.jpg

Jack had a great day playing with all his friends, he smiled and laughed all day! After everyone went to bed I sat down with a cool crisp Budweiser 66 and congratulated myself on (helping) keep another one alive for another year. Get in.

I can’t wait for the next year.

Goodbye Dummy

20111002-112556 PM.jpg

We’ve tried time & time again to get Sam to give up his dummy, but for one reason or another either we or Sam would give in and the dummy would be returned.

Not this time.
We again explained to Sam that he was simply too old for a dummy & that if he handed it over he would receive a new toy in compensation, this has happened plenty times in the past so he knew what was happening. However this time we cut the dummy in half, in front of him ( so he knew that it wasn’t coming back ) and put it in the bin.

The look of total defeat, disappointment & losing something he loves on his face makes for a very sad time. He has hover completely forgot about it and is sleeping fine without it. Win.

How I Feel About WordPress at 2am

WordPress Dynamic Navigation

Sometimes in WordPress you don’t want to use the custom menus for some navigation parts, like sub navigations in sidebars or something. Sometimes custom menus are just over kill, especially if every page has a sub navigation made up of child pages.

Heres an easy way of generating the sub navigations of Parent / Child pages & also showing the Parent page title above it.

if($post->post_parent) {
	$post_ancestors = get_post_ancestors($post->ID);
	$post_root = count($post_ancestors)-1;
	$post_parent = $post_ancestors[$post_root];
	$title = get_the_title($post_ancestors[$post_root]);
} else {
	$post_parent = $post->ID;
	$title = get_the_title($post->ID);
}
$children = wp_list_pages("title_li=&child_of=".$post_parent."&echo=0&depth=1");
if($children) {
	echo '<div id="page_left">'."\n";
	echo '	<h3>'.$title.'</h3>'."\n";
	echo '	<ul id="subnav">'."\n";
	echo 	    $children."\n";
	echo '	</ul>'."\n";
	echo '</div>'."\n";
}