Remove the Header and Footer if My-Account is showing Login/Register Form
-
In the
My-Account
page, if the user is not logged in, theLogin or Register
Form will be shown. I wanted to remove the Header and Footer only for that state to make it simple and let the users focus only on the form, is that possible? Can it be done using Hook?Something like;
function remove_header_footer(){ if(!is_user_logged_in() && is_page('my-account')){ //Remove the header and footer } } add_action('WHAT-ACTION-TO-USE?', 'remove_header_footer');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove the Header and Footer if My-Account is showing Login/Register Form’ is closed to new replies.