Re: All site data visible to members and non-members alike
I just wanted to add my own low-tech solution to a similar situation. This is what I did to hide all my BuddyPress features (members, activity, etc) while keeping my pages and blog posts publicly accessible…
In my child theme, I copied the members/index.php, activity/index.php(etc etc) folders and files. Then in the index files, I surrounded everything inside the “padder” div (which displays all the content) with a is_user_logged_in tag like this:
<div class=”padder”>
<?php if (is_user_logged_in()){ ?>
(content guts go here)
<?php } else { echo “<h3>Members Only!</h3><p>Sorry. The page you have requested is for registered members only. Please visit our About page for more information on member registration. Thank you for visiting.</p>”;} ?>
</div>
PHP isn’t really my thing, so that’s probably not the best way of doing it, but it worked.