How do you stop the rendering of the website to have something display on the front-end?
Assuming that you want the header and footer same for logged in and non-logged in users, you can add your IF condition in the file generating your front page (ex. front-page.php or index.php). This is completely dependent upon the theme you are using. For example in the WP’s default twentyseventeen theme, the front-page.php file calls … Read more