- This topic has 1 reply, 2 voices, and was last updated 7 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How to insert a Not-LoggedIn redirection?
Hi, I’d like to display a page when a not logged-in user is trying to enter to a page where you need to be loggedin to see it. Right now the plugin displays a plain text but I’d like to create a peage with different elements to be displayed instead.
Please, is there anyway that I can do that? This is how the not logged in page looks like: http://uptobeweb.com/acaramelados/fichas-sabores/
And also the text appears duplicated on the body and footer. I had to place 200px padding to the element so it doesn’t appear behind the header menu.
Kind regards
Here is documentation on some PHP coding “tweaks” you can use:
https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/
The first tweak is a conditional check to determine if a person is a logged in member. Simply replace the example message with a PHP header() redirect:
http://php.net/manual/en/function.header.php
Remember, as per the referenced documentation (above), that header() must be called before any actual output is sent; which means you might end up inserting it into your theme’s page template file.