Remove Sidebars on Single Posts

This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.

Place the following code in custom_functions.php:

function no_sidebars() {
if (is_single())
	return false;
else
	return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');

On Specific Posts Only

If you only want no sidebars on certain Posts, you can use a Custom Field instead.

On the Edit post panel, at the bottom of the Custom Fields section, click “Enter new”.

In the “Name” field, type no_sidebars, and in the “Value” field, enter 1.

Click the “Add Custom Field” button; and then the “Publish/Update Post” button.

(Note that once you’ve created the Custom Field for the first time, from that point forward, you’ll be able to simply select it from the dropdown list when creating or editing additional Posts.)

Then, place the following code in custom_functions.php:

function no_sidebars() {
	global $post;
	$no_sidebars = get_post_meta($post->ID, 'no_sidebars', true);
	if (is_single() && $no_sidebars)
		return false;
	else
		return true;
}
add_filter('thesis_show_sidebars', 'no_sidebars');