Skip to content

Commit

Permalink
update default form content to include 'for' attribute on label field
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 21, 2024
1 parent b35494f commit 2b8bbd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/default-form-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
$email_placeholder_attr = esc_attr__('Your email address', 'mailchimp-for-wp');
$signup_button_value = esc_attr__('Sign up', 'mailchimp-for-wp');

$content = "<p>\n\t<label>{$email_label}: \n";
$content .= "\t\t<input type=\"email\" name=\"EMAIL\" placeholder=\"{$email_placeholder_attr}\" required />\n</label>\n</p>\n\n";
$content .= "<p>\n\t<input type=\"submit\" value=\"{$signup_button_value}\" />\n</p>";
$content = "<p>\n\t<label for=\"email\">{$email_label}: \n";
$content .= "\t\t<input type=\"email\" id=\"email\" name=\"EMAIL\" placeholder=\"{$email_placeholder_attr}\" required>\n</label>\n</p>\n\n";
$content .= "<p>\n\t<input type=\"submit\" value=\"{$signup_button_value}\">\n</p>";

return $content;

0 comments on commit 2b8bbd3

Please sign in to comment.