Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Remove theme sidebar

@r-a-y

Keymaster

hnla is absolutely correct.

You can place `buddypress.php` in the `buddypress` subdirectory.

You can treat `buddypress.php` like any other template.

So what you want to do is do a conditional check to see if you’re on a profile page.

Since you only want to show the sidebar on non-member pages, you could use the following code snippet:

`<?php if ( ! bp_is_user() ) { get_sidebar(); } ) ?>`

This snippet should replace the `get_sidebar()` line in your `buddypress.php` template.

Skip to toolbar