Hide the “Home” link in the Squirrel theme for WordPress

This is one of those “I’m going to post this as a note to myself” posts…

I recently found the Squirrel theme for WordPress, which is a good for simple corporate-looking sites. One thing I wanted to do was to remove the “Home” link. Here’s how.

In the theme editor section, edit the file squirrel-functions.php. Find the method squirrel_nav_menu_items. In it, comment out all lines except the last line. The function should now look like this:

function squirrel_nav_menu_items($items) {
	/*
	if (is_home()) {
		$homelink = '<li class="current_page_item">' . '<a href="' . home_url('/') . '">' . __('Home', 'squirrel') . '</a></li>';
	} else {
		$homelink = '<li>' . '<a href="' . home_url('/') . '">' . __('Home', 'squirrel') . '</a></li>';
	}
	$items = $homelink . $items;
	*/
	return $items;
}

That’s it; home link gone. Nice free theme, and nice easy hack.

Comparing the cost of signing and implementing legislation

Legislator 1: “Let’s create a new law that creates an emergency phone number for health care emergencies, just like 911!”
Legislator 2: “Awesome, I’ve just drafted it, let’s use ‘011’!”
Legislator 3: “OK, it’s passed!”

Cost for legislators to sign their name to the bill: trivial.
Cost for compliance and implementation: priceless.