1. Home
  2. Docs
  3. The Honeycomb Theme
  4. Remove Sidebar From Property Details Page

Remove Sidebar From Property Details Page

To remove the sidebar from the property details page you have one of two options:

Option 1

If you're not using the sidebar anywhere on your site you can navigate to 'Appearance > Widgets' and remove all active widgets. This will in turn remove the sidebar from not only the property details page, but all pages on the site.

If looking to maintain the sidebar on certain pages, option 2 below would be better for you.

Option 2

Add the following to your theme's functions.php file:

add_filter( 'body_class', 'honeycomb_single_property_body_class' );
function honeycomb_single_property_body_class( $classes ) 
    if ( is_singular('property') )
        remove_action( 'honeycomb_sidebar', 'honeycomb_get_sidebar', 10 );

        $classes[] = 'honeycomb-full-width-content';
    return $classes;