Home › Forums › Support › Login sidebar › Reply To: Login sidebar
April 13, 2015 at 9:42 pm
#98381
Fabian Cosmann
Hi Tom,
I will have a deeper look to the membership plugins.
I tried to build the redirect on my own with this code in a GP child theme template:
<?php
/*
Template Name: Some_example
*/
?>
<?php if (!is_user_logged_in())
{
header(“Location: my_own_login_page_with_sidebar”);
}
else
{
get_header();
//page code
get_footer();
}?>
But I get an error message:
Cannot modify header information – headers already sent
🙁