Support » Plugin: Newsletter Sign-Up » In widget, NAME required field box doesn't work w/placeholder text

Viewing 1 replies (of 1 total)
  • I am not using the widget but I had the same problem with the normal version of the sign up and this is how I fixed it adding the placeholder text as the First name on MailChimp. By no means am I saying this is the proper way to do it, it’s just the way I figured out to fix it.

    In the frontend/NewsletterSignUp.php file on line 261 I changed this code:
    if(isset($this->options['mailinglist']['subscribe_with_name']) && $this->options['mailinglist']['subscribe_with_name'] == 1 && isset($opts['name_required']) && $opts['name_required'] == 1 && empty($name)) {

    to this:
    if(isset($this->options['mailinglist']['subscribe_with_name']) && $this->options['mailinglist']['subscribe_with_name'] == 1 && isset($opts['name_required']) && $opts['name_required'] == 1 && ($name== "First Name")) {

    I added && ($name== “First Name”) to the end of the statement and my placeholder text was First Name so just change that to your name and try it out. Save a copy of your original file just in case.

    Let me know if it worked for you.

Viewing 1 replies (of 1 total)
  • The topic ‘In widget, NAME required field box doesn't work w/placeholder text’ is closed to new replies.