- This topic has 5 replies, 2 voices, and was last updated 7 years, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Add class for reset password form messages?
Would you be willing to add classes for the messages that are displayed when the reset password form is submitted? I went in and edited the php file, but would really prefer to put this in a custom css file so that I don’t loose it when eMember updates.
This is from the eMember_misc_functions.php file:
function print_password_reset_form() {
//Read the email address value
isset($_POST) ? $email_value = strip_tags($_POST) : $email_value = ”;
ob_start();
if (isset($_POST)) {
$status = wp_emember_generate_and_mail_password($email_value);
if ($status)
echo ‘<span style=”color:green;”>’ . $status . ‘</span>’;
else
echo ‘<span style=”color:red;”>’ . $status . ‘</span>’;
}
I’d like to change the style of the messages using css. Thank you
Yes sure. I have added new CSS classes in there. In the future when you upgrade, you will be able to just use CSS tweak to apply your customization.
Thank you!
Oh – can you share the css class names so that I can pop that in my custom css now so I don’t forget?
The message is now wrapped using the following CSS classes
.emember_password_reset_success_msg
.emember_password_reset_error_msg
Thank you so much