• Resolved clmsvie

    (@clmsvie)


    Hello,

    Great plugin, amazing work – thanks!
    I was wondering if there is a way to show only the login and forgot password form? It should not be possible for people to sign up, only to log in.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Add the following code to the plugin setting, “Custom Content”:

    <style>#usp-login li:nth-child(2) { display: none; }</style>

    Save changes and done.

    Also make sure that the “Membership: Anyone can register” option is unchecked in the WP General settings.

    • This reply was modified 4 years, 9 months ago by Jeff Starr. Reason: adds infos

    Hi Jeff,

    Sorry to bother you on this. I tried the code above but it does not work. The “Register” tab of the login screen still appears. Is there anything else you can suggest?

    Plugin Author Jeff Starr

    (@specialk)

    No that’s the only way that the plugin provides to add custom code. You may want to check your theme to see if they provide a way to add CSS/code. Or if not there are plugins that can enable it. Also make sure that the code example above looks like this when copy/pasting:

    <style>#usp-login li:nth-child(2) { display: none; }</style>

    That is known to work on default WP. So it is not working on your setup, there could be interference from another plugin, etc.

    • This reply was modified 4 years, 8 months ago by Jeff Starr. Reason: adds infos

    Thanks Jeff,

    I am using Weaver Xtreme. I have tried pasting this into the global CSS area. Something must be wrong since it is ignoring it despite the documentation indicating: “On the Customizer, this is found on the Custom CSS -> Global Custom CSS menu. This is where you can enter custom CSS to fine tune the styling of your site. The sources for these CSS rules can vary.

    You should enter just CSS rules in this box. Don’t include a <style></style> block. The style rules you add here will be included after any other CSS rules Weaver Xtreme generates – so they will override those rules.”

    Plugin Author Jeff Starr

    (@specialk)

    Yeah then just try it without the script tags like:

    #usp-login li:nth-child(2) { display: none; }

    Should do the trick.

    Worked great! Sorry I am a noob – so didn’t realize until you pointed it out that they meant to leave off the script tags.
    Much appreciated.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this. The next version of USP (20200817) includes this functionality, so that the “Register” tab displays only if user registration is enabled on the site. If registration is disabled, then the tab is hidden. Thanks for the feedback on this, @damianjordan.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login-only Form (no registration)’ is closed to new replies.