latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Remove forgot password link on pro form

Home Forums Community Forum Remove forgot password link on pro form

This topic contains 9 replies, has 4 voices. Last updated by  Raam Dev 4 years, 3 months ago.

Topic Author Topic
Posted: Thursday Sep 27th, 2012 at 12:00 pm #26710
Christopher
Username: fusiagr

Hi,

How do I remove the “forgot Password” link on the pro form?

Thanks

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Thursday Sep 27th, 2012 at 4:59 pm #26740
Eduan
Username: Eduan
Moderator

Hello Chris,

From what I know, the pro-form doesn’t have a “Forgot your password?” link, at least not the registration pro-form.

Are you referring to the form in your-site.com/wp-login.php?action=register?

Or are you referrring to the login widget, that you can call with PHP?

– Eduan

Posted: Friday Sep 28th, 2012 at 8:01 pm #26899
Christopher
Username: fusiagr

Hi,

Sorry, yes i’m referring to the login widget that i’m calling in with php on a page in wordpress (using the exec-php plugin to allow php etc.)

thanks

Posted: Friday Sep 28th, 2012 at 9:20 pm #26904
Eduan
Username: Eduan
Moderator

Hmm, OK.

Well as far as I’m aware, the login widget simply copies the login page that WordPress uses, not sure on that, but you can probably edit this file (in your installation) and check if there’s something you recognize.

Hope this helps. :)

Posted: Tuesday Oct 2nd, 2012 at 6:28 pm #27276
Christopher
Username: fusiagr

HI,

I found a plugin that removes it from the wp-login page but it still shows up on this page. So it doesn’t appear to be using the log in page that wordpress uses.

Posted: Wednesday Oct 3rd, 2012 at 5:00 am #27310
Raam Dev
Username: Raam
Staff Member

Christopher,

s2Member uses the default WordPress login page (/wp-login.php). s2Member also provides the Pro-Login Widget that you can add to your sidebar, but it doesn’t sound like that’s what you’re using.

For changes to the default WordPress login page, please see Customizing the Login Form on the WordPress Codex.

Posted: Wednesday Oct 3rd, 2012 at 9:59 am #27336
Christopher
Username: fusiagr

Hi,

I am using code below in a wordpress page with php-exec plugin to allow for using php in page,

<?php
$options = array(
"title" => "", 
"signup_url" => "", 
"login_redirect" =>  "http://notthe.org",
"profile_title" => "",
"display_gravatar" => "0", 
"link_gravatar" => "0", 
"display_name" => "1", 
"logged_in_code" => "", 
"logout_redirect" => "http://notthe.org", 
"my_account_url" => "0", 
"my_profile_url" => "0" 
);
$args = array (
"before_widget" => "<div class=\"member_login_widget\">",
"after_widget" => "</div>",
"before_title" => "<h5>",
"after_title" => "</h5>"
);
echo s2member_pro_login_widget($options, $args);
?>
Posted: Thursday Oct 4th, 2012 at 6:34 am #27398

There isn’t a setting to remove that link in the widget. You’d need to edit the code for it to do that. s2member\includes\menu-pages\scripting.inc.php

You could also remove it using JavaScript or hide it with CSS.

I hope it helps. :)

Posted: Monday Oct 8th, 2012 at 3:44 am #27772
Christopher
Username: fusiagr

Hi,

I added this to my theme’s css:

.ws-plugin--s2member-pro-login-widget-lost-password {
display: none;
}

Thanks

Posted: Monday Oct 8th, 2012 at 7:42 am #27783
Raam Dev
Username: Raam
Staff Member

Great! Thank you for sharing the solution, Christopher. :)

Awarded Christopher the Helpful badge.
Viewing 9 replies - 1 through 9 (of 9 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.