Find Answers and Get Support › Forums › Cera – Intranet & Community Theme › Popular Features › Private Website › Home page/logged out users
- This topic has 1 reply, 3 voices, and was last updated 4 months ago by
Manathan.
-
AuthorPosts
-
AshakahParticipant@meshak
- 4 Topics
- 10 Posts
I am trying to restrict nonmembers to just the login page as it is on the demo but not sure how i can do that i tried the option on the FAQ but not working.
Option tired ::::
/**
* Redirect buddypress pages to registration page
*/
function gwangi_restrict_buddypress() {
// If not logged in and on a bp page except registration or activation
if ( ! is_user_logged_in() && is_buddypress() && ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) {
wp_redirect( home_url( ‘/register/’ ) );
exit();Please i need responds as soon as possible
}
}
add_action( ‘template_redirect’, ‘gwangi_restrict_buddypress’ );February 5, 2023 at 11:26 #44093@roboraptor- 0 Topics
- 262 Posts
Hi there,
Thanks for getting in touch!
We provide support only during Belgian business hours (Monday to Friday, from 8:30 am – 5:30 pm CEST), and our current response time can be up to 1 business day. We’ve received your request and we’ll get you an answer ASAP.
We really thank you for your patience!
In the meantime, feel free to check out our documentation resources for more help: https://doc.themosaurus.com/
Kind regards,
February 5, 2023 at 11:26 #44094@themodactyl- 0 Topics
- 5766 Posts
Hi Ashakah,
Thank you for buying our theme. We hope it will meet all your expectations! 🙂
This article form our documentation might catch your attention:
If you have further questions or requests, feel free to create other forum topics.
Best,
February 6, 2023 at 15:42 #44140 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘Home page/logged out users’ is closed to new replies.