Restrict website
Hello
1) what is tooltip in forms.
2) how many fields can be inserted in form
3) How to remove the big image under menu in homepage.
4) How to make entire website restricted such as no one can see any page and if a page is clicked, the user is redirected to login page. Only logged in user can access the contents. I want to restrict entire site. I tried plugins such as "restricted site access" and also used these codes on function.php but everytime browser was saying error too many redirects , this page has redirect loop-
add_action( '
wp', 'member_only_site' );
function member_only_site( ) {
if ( ! is_user_logged_in( ) ) {
auth_redirect();
}
}
function redi() {global $pagenow;if (!is_user_logged_in() && $pagenow != '
wp-login.php') {wp_redirect('
wp-login.php?action=register');}} add_action('template_redirect', 'redi');
global $pagenow; $accessible_pages = array('
wp-login.php'); if ( !is_user_logged_in() && !in_array($pagenow, $accessible_pages) && !is_admin() ) { auth_redirect();}