I'm making a community social media website using BuddyBoss's Boss theme. I'm also using Buddypress.
Since I want my website to be private, what I want to do is to disable the search function for anyone who isn't logged in to the website.
The titlebar or header of that theme is fixed meaning that search isn't just a widget but an actual part of the titlebar.
Also, can you tell me the best plugin to restrict access to the website to only the logged-in members so that others can't see anything but one single sign-in or register page.
I'm guessing it can also be done by is_logged_in function but I'm unfamiliar with php coding and would very much appreciate it if you help me out.
If it cannot be done without editing files then, here is a link to a few php files like header.php, search.php, etc.