Remove Sidebars on Home Page

Applies to Version(s): Thesis 1

Place the following code in custom_functions.php:

// Remove sidebars on home page
function no_sidebars() {
	if (is_home())
		return false;
	else
		return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');

// Add a custom class to home page for styling
function home_body_class($classes) {
	if (is_home()) {
		$classes[] .= 'home';
 	}
	return $classes;
}
add_filter('thesis_body_classes', 'home_body_class');

Place the following code in custom.css, and adjust as needed:

/* Adjust home page to accommodate removal of sidebars */
.custom.home #content { width: auto; }
.custom.home #content_box { background: none; }