1. Home
  2. Knowledge Base
  3. Uncanny LearnDash Toolkit
  4. Front End Login



The Front End Login module lets you put login forms anywhere on your WordPress site; it also allows you to restrict access to verified users. Once enabled, several features become available: a [uo_login] shortcode for login from any page; a [uo_login_ui] for the default login page (which replaces wp-login.php and must be defined in the feature settings) and user verification.


Live Demo

See this module in action on our LearnDash demo site!

User Verification

Let’s start with verification. If enabled in the Settings (click the Gear icon to turn this on), users that register from the front end MUST be manually approved by an administrator before they can sign in. This field must be checked for it to work. Once set and saved, a “Verified” column will be added to the list of users in WordPress. Any users listed as “Not Verified” cannot sign into WordPress. To verify a user, navigate to the user’s profile and look for the “Verify User” label. By selecting this field and saving the page, the users will be able to sign in. On verification, users will also be notified by email that the account has been verified and access has been granted. If you turn this feature on, make sure you verify all existing users, including administrators!

Required Shortcode

The [uo_login_ui] shortcode allows you to replace the default wp-login.php page with your own branded page. To set this up properly, we recommend creating a page first and adding the [uo_login_ui] shortcode to a page. Once that’s done, return to the Uncanny Toolkit Settings page and open the settings for Front End Login. Choose the page you added and save the settings. Once this is set up, users will be directed to the new branded login page instead of wp-login.php. Both the [uo_login_ui] shortcode and the page must be set up for this to work properly. The login page must also be set up for the user verification to work.

Important: If you define a Login page in the Toolkit settings and don’t include a login form on that page, you can lock yourself and other users out of the site. Make sure the login form is on the page and working before you choose a Login page! We recommend testing in an incognito window if there are problems so that you’re still signed in as an administrator if you need to make changes. (If you do accidentally lock yourself out, delete or rename the Toolkit folder via FTP, sign in, re-enable the Toolkit and then add the login form properly.)

Also make sure that your login page is not cached. If you see redirect errors or users can’t sign in properly, check this first. Your host may also have server-side caching enabled for your login page (WP Engine and Siteground are known to do this, as are many others), so check with them if you’re not sure.

Optional Shortcode

To add a simple login form to any page, use this shortcode example: [uo_login]content if logged in [/uo_login]. That allows you to add the form and include a special message to users seeing the form area that have already signed in (which replaces the “content if logged in” text”).

[uo_login]content if logged in [/uo_login]

Overriding the login template

For advanced developers, there’s a filter available to override the login template file with a file of your own. Here’s how you could replace the default template file with one in your child theme folder:

add_filter( 'uo_login_ui_template', get_template_directory() . '/my_template_file.php' )

Was this article helpful?

14 replies
  1. Ryan
    Ryan says:

    The Front End Login module doesn’t include any type of registration form, and currently we don’t plan to add one. Our other plugins do include registration options if something is required for use of the plugin, but for this module, the registration link just defers to whatever has been set up already in WordPress (and if nothing exists for registration, it uses the standard WordPress registration).

    • Amy
      Amy says:

      Is there a way to not have the register link under the forgot password link? The register link sends my users to make a seperate wordpress account, and that is confusing since they have already made an account to access my course during woocommerce checkout.

      • Ryan
        Ryan says:

        It’s because you have “Anyone can register” turned on in WordPress settings under Settings > General. If you uncheck that box the link will go away.

    • Ryan
      Ryan says:

      The link and registration behaviours not part of the Toolkit; the link will just be shown automatically if you allow anyone to register. If you don’t want it displayed, make sure you navigate to Settings > General as an admin and uncheck “Anyone can register”.

  2. Corinne
    Corinne says:

    I’m not sure what I’m doing wrong. I have the Front End Login set up and I want a particular page to only be available to people who are logged in. If I put the URL of that page right into the browser, I can access the page without having to login. Is there a way to block people from just using the direct URL?

    • Ryan
      Ryan says:

      I’m afraid the Front End Login module can’t help there. With LearnDash you can protect pages if they’re inside closed courses, or more generally you can use a membership plugin or other tool that restricts page-level access.

  3. Boris
    Boris says:

    I was wondering if there is any option in the shortcode to avoid redirection to the homepage ? I was hoping the log-in on my sidebar would redirect to the same page it was validated from (the course page where the sidebar appears) as it is a bit confusing for users to have to go back to the page they were before manually.

    • Ryan
      Ryan says:

      I’m afraid there is no such option. Typically we would override the redirect behaviour anyway (as it can’t be set in this module) to a specific page, either with the Log In/Log Out Redirect module also in the plugin, or with another tool so we can use role-based redirect. Those solutions can unfortunately only take users to a specific page though, not back to where they were originally. I’m afraid that for the behaviour described another login solution may be a better fit.

  4. mai
    mai says:

    i want to ask please

    1) now when i click on register, it takes me to wordpress registration page? is there a way to change this?

    2) can i use this plugin, but add my own login and own registration pages? using a custom form plugin

    3) how to change how the form CSS looks? design wise (login form)

    4) how to trasnalte: login, username, … etc strings? i found on ur plugin translation page in WP, these are nott here?

    thank u!! i am new here so kindly bear with me

    • Ryan
      Ryan says:

      1. Where the Register link takes you depends on what WordPress recognizes as your registration page. It’s not something you set in our Toolkit. So if you use another plugin for a registration page and have that plugin tell WordPress that that’s the registration page, our link will then take the user to that page.
      2. You can certainly turn off any modules you’re not using. It’s very common for this module to be turned off while others are left enabled and used.
      3. Yes, the login form includes CSS classes that you can target. You will need to know how to work with CSS to style the login form.
      4. All strings are definitely translatable, but it’s certainly possible that someone hasn’t translated all or any of the strings to your language. Use a plugin like Loco Translate to find untranslated strings and translate them; the labels you cited above can definitely be translated.

    • Ryan
      Ryan says:

      This suggests that the plugin wasn’t able to properly send an email through WordPress. Try testing that other emails are sending properly through WordPress and that a plugin isn’t being used to block emails. If you’re using a plugin that routes mail through a third party, try disabling that temporarily as well to see if it could be conflicting.



Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

Your email address will not be published. Required fields are marked *