WordPress.org

Forums

Newsletter
[resolved] Change the error message "Wrong email" (7 posts)

  1. desarollo
    Member
    Posted 1 year ago #

    I want to change the message that show when you submit a wrong email.
    I suppose that is in:

    #suscribe.php
    #
    #if ($user->status == 'E') NewsletterSubscription::instance()-#>show_message('error', $user->id);
    #

    But i dont find where is 'error'.

    https://wordpress.org/plugins/newsletter/

  2. Stefano Lissa
    Member
    Plugin Author

    Posted 1 year ago #

    On subscription form panel you'll find all the messages.

  3. desarollo
    Member
    Posted 1 year ago #

    I change all the fields and the message its the same. I create my own form with an input id nws-input. Other messages like Welcome message or Already subscribed page content works perfect. But when i put a wrong email show me "Wrong email" i want change it (translate to my languaje) and change style. Thanks

  4. Stefano Lissa
    Member
    Plugin Author

    Posted 1 year ago #

    See the subscription form panel.

  5. desarollo
    Member
    Posted 1 year ago #

    I saw it, and nowhere put a message that say "Wrong email" only this "Email i nos validate" in Error message, i suposse that is a different message.

  6. desarollo
    Member
    Posted 1 year ago #

    I found the line in the code where i suposse that is the problem. In subscription.php in the folder /subscription line #197 the code says:

    ## die('Wrong email')

    If I translate this, the message will be changed, no? But, how i put it css style?

  7. desarollo
    Member
    Posted 1 year ago #

    I have the solution!, i put in the die sentence #die ('<div id="error">Wrong email</div>')

    And in the code css:
    #error {font-size:XXpx; position:XXXX; font-family:XXXXXX;}

    I wait this can help people with the same problem!
    Thank you for all!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Newsletter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.