Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Homepage issue, help please


r-a-y
Keymaster

@r-a-y

To remove the default tabs, you’ll need to modify the theme.

Read this page:
https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

Then, once you’ve got the hang of that. Copy over /bp-themes/bp-default/header.php to your new child theme and modify the tab structure.

The function you’ll want is:
`is_user_logged_in()`

Wrap a is_user_logged_in() conditional around the tabs you want to show only for logged in users.

Something like this:

`

<li class=”selected”>
<a href="//” title=””>

<li class=”selected”>
<a href="//” title=””>

<li class=”selected”>
<a href="//” title=””>

<li class=”selected”>
<a href="//” title=””>

<li class=”selected”>
<a href="//” title=””>

`

Note that if someone knows the URLs to those tabs, they’ll still be able to access them.

You might want to look into some BP private plugins like:
https://wordpress.org/extend/plugins/buddypress-private-community/
https://wordpress.org/extend/plugins/private-buddypress/

Skip to toolbar