Title: REDIRECT
Last modified: August 22, 2016

---

# REDIRECT

 *  Resolved [manish_chahal](https://wordpress.org/support/users/manish_chahal/)
 * (@manish_chahal)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-59/)
 * I INSTALLED THE PROFILE BUILDER AND I MADE THE PAGES BY WRITING THE SHORTCODE.
   HOWEVER I AM STILL NOT ABLE TO FIGURE OUT,THAT I WANT THE LOGIN AND REGISTER 
   PAGE TO BE TURNED OFF AUTOMATICALLY WHEN THE PERSON LOGS IN AND WHEN THE PERSON
   LOGS OUT HE SHOULD C LOGIN AND REGISTRATION PAGE
 * [https://wordpress.org/plugins/profile-builder/](https://wordpress.org/plugins/profile-builder/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [adispiac](https://wordpress.org/support/users/adispiac/)
 * (@adispiac)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-59/#post-5409175)
 * Hi,
    The simplest way to achieve this is to use the body class “logged-in” to
   hide the Register and Login pages from your menu via css.
 * Simply add this to your theme’s style.css file:
 *     ```
       /* hide the register page when user is logged in */
       .logged-in .nav-menu li.page-item-5 {
               display:none;
       }
       ```
   
 * Make sure to replace page-item-5 with your Register page number. The same goes
   for Login.
 * Also keep in mind that if you remove the login page after a user logs in, you’ll
   need to offer him a way to logout. You should consider having a login widget 
   in the sidebar.

Viewing 1 replies (of 1 total)

The topic ‘REDIRECT’ is closed to new replies.

 * ![](https://ps.w.org/profile-builder/assets/icon-256x256.png?rev=2961144)
 * [User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor](https://wordpress.org/plugins/profile-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/profile-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/profile-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/profile-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profile-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profile-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [adispiac](https://wordpress.org/support/users/adispiac/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/redirect-59/#post-5409175)
 * Status: resolved