How to disable Register Page & Only Show Login Page

Home Forums Gwangi – Dating & Matchmaking Community Theme Website Setup Menus How to disable Register Page & Only Show Login Page

This topic contains 17 replies, has 2 voices, and was last updated by  Themosaurus 1 year, 1 month ago.

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #768

    kam
    Participant
    • 99 Posts
    @harryshapes

    Hi,

    On the register page it also has a tab for the login. How can i hide the register page and only show the login on the same page it shows on the front end. I don’t want people to login via the wordpress login only via the front end login.

    Please advise.

    Thanks

    #776

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi kam,

    Do you want to create a page including only the login form?
    Please confirm after visiting the following example: https://classic.gwangi-theme.com/login/

    Do you want to also prevent users from registering?
    Or do you want to separate the registration page from the login page?

    Finally do you want to completely prevent users from logging in using the /wp-login.php form and redirect them to your primary login form?
    Or simply hiding all link to the default WP login form is good enough?

    Thank you for your reply.

    Regards

    #777

    kam
    Participant
    • 99 Posts
    @harryshapes

    Hi,

    Yes to all actually please.

    Thank you

    #797

    kam
    Participant
    • 99 Posts
    @harryshapes

    Hi,

    Do you have an update?

    Kind regards,

    #798

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi kam,

    1) We use Login With Ajax (https://wordpress.org/plugins/login-with-ajax/) on our demos to create the login form. Please make sure this plugin is installed on your server and then, read the following tutorial to find how to setup your login form:

    Creating the Login Page

    2) Do you want to separate the registration page from the login page?
    If yes, the simplest way might be to hide the “Login” tab from the registration page.
    To do so, please visit your website CSS editor (“Appearance > Customize > Additional CSS”) and paste the following code:

    .bp_register .nav-register .nav-item:last-child {
        display: none;
    }

    3) Finally, to completely prevent users from logging in using the /wp-login.php form and redirect them to your primary login, you can install and activate any plugin of your choosing, like WPS Hide Login (https://fr.wordpress.org/plugins/wps-hide-login/).

    Regards

    #887

    kam
    Participant
    • 99 Posts
    @harryshapes

    Thanks this helps alot however I do have a note to add to this..

    When i register how do i get it to redirect to a page that i want.. example the home page?

    with the above instructions once when i login it keeps me on the login page when logged in.. i then have to manually go to another page..

    how do i redirect when i log in automatically?

    please advise.

    Thanks

    #898

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi kam,

    Unfortunately, this feature is not supported by BuddyPress. Changing the way BP redirect after login or registration is outside the scope of any theme and thus unsupported by Gwangi.

    If you want to improve redirection settings, you will need to add custom code or one of the following plugins:

    BuddyPress Redirect to Profile

    BP Login Redirect

    You can also change the default redirection settings in Login With Ajax (please review attachment).

    Regards

    #900

    kam
    Participant
    • 99 Posts
    @harryshapes

    Thanks I will look at this.

    I have just noticed tho when following your steps regarding the register page and not to show the login page when I view the site from a mobile in the menu it just gives me the register//login option and when pressed only takes me to a register page with no login option.

    How do I change the menu so it’s the same as when viewing on a PC on a mobile?

    #911

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi Kam,

    Thank you for your great feedback.
    We understand that in your case, the display of this link might be disturbing for your visitors. What we should have displayed is the Logged Out User Menu, to show them the pages you’ve chosen for Login and Register.

    You can change this by adding the following CSS code to your website:

    @media screen and (max-width: 992px) {
        .navbar-nav--buddypress #menu-user-logged-out {
            display: block !important;
        }
    }

    Please note that we will also change this in a coming update of Gwangi. At that point, the given CSS code snippet will no longer be necessary.

    Regards

    #912

    kam
    Participant
    • 99 Posts
    @harryshapes

    Ok so I should remove the code you gave before and put the new on in is that correct??

    Also when logged in and viewing on a mobile it doesn’t show me an option to logout??

    Please advise

    Thanks

    #948

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi Kam,

    1) Yes, you can remove this code snippet once Gwangi 1.1.0 will be released. In the meantime, it will help you achieve what you are looking for.
    2) Did you already add the snippet to your website ?

    Thank you for your reply.

    Regards

    #949

    kam
    Participant
    • 99 Posts
    @harryshapes

    The snippet has been added however no option to logout in the menu is shown when viewing on a mobile.

    Please advise

    Thanks

    #956

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi Kam,

    Can you please replace the previous code snippet by the following to see if it solve your issue ?

    @media screen and (max-width: 992px) {
        .navbar-nav--buddypress #menu-user-logged-in,
        .navbar-nav--buddypress #menu-user-logged-out {
            display: block !important;
        }
    }

    Once it is done, please confirm if it works for you.

    Thank you for your reply.

    Regards

    #961

    kam
    Participant
    • 99 Posts
    @harryshapes

    Hi yes this does work now however when u log out it now shows the separate option for register and login as you would do when viewing the website on a PC??

    Basically it says register//login twice

    #967

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi,

    Can you provide us with the URL to your website and screenshots of what you’re looking to change please ?

    Thank you for your reply.

    #977

    kam
    Participant
    • 99 Posts
    @harryshapes
    This reply has been marked as private.
    #989

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Hi kam,

    Once you have pasted the CSS code snippet to your custom CSS panel, these menus should be displayed like in the attached screenshots.
    Please make sure your menus are correctly set to prevent from displaying the same page links twice.

    To edit menus, you can navigate to “Appearance > Menus” in your admin panels.

    Regards

    #994

    Themosaurus
    Keymaster
    • 1674 Posts
    @themosaurus

    Kam,

    For your information here are some previews of how the user-menu will be displayed in the next update of Gwangi.

    Cheers,

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘How to disable Register Page & Only Show Login Page’ is closed to new replies.