Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – Add class for reset password form messages?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Add class for reset password form messages?

  • This topic has 5 replies, 2 voices, and was last updated 7 years, 11 months ago by sahmcolorado.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 13, 2017 at 5:35 am #14197
    sahmcolorado
    Spectator

    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 :)

    July 14, 2017 at 2:15 am #76040
    admin
    Keymaster

    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.

    July 18, 2017 at 3:37 am #76041
    sahmcolorado
    Spectator

    Thank you!

    July 18, 2017 at 3:39 am #76042
    sahmcolorado
    Spectator

    Oh – can you share the css class names so that I can pop that in my custom css now so I don’t forget?

    July 18, 2017 at 11:46 pm #76043
    admin
    Keymaster

    The message is now wrapped using the following CSS classes

    .emember_password_reset_success_msg

    .emember_password_reset_error_msg

    July 19, 2017 at 4:42 am #76044
    sahmcolorado
    Spectator

    Thank you so much :)

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ