• Resolved panda

    (@alejorostata)


    In the My-Account page, if the user is not logged in, the Login 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');
    • This topic was modified 4 years, 5 months ago by panda.
    • This topic was modified 4 years, 5 months ago by panda.
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.