Hi Katie,
Here’s how you can do it. This will place the birthday field under the email field on form design 5.
First edit the following file: wp-content/plugins/optin-forms/css/optinforms.css
Find line #57 #optinforms-form5-email-field{...}
and copy it. Paste it under line #57 and change #optinforms-form5-email-field
to #optinforms-form5-birthday-field
.
I’m guessing this field will need its own icon, so simply change the background: url(../images/icon-email-01.png
value to an icon of your choice. Don’t forget to upload your icon to wp-content/plugins/optin-forms/images
folder. Your icon will need to be 25×16 pixels.
Now that we have the CSS part, we need to add the new field to our posts and pages.
We need to edit the following file: wp-content/plugins/optin-forms/includes/functions-forms.php
Scroll down to line #218. You will need to look very carefully for the following code:
<input type=\"text\" id=\"optinforms-form5-email-field\" name=\"" . optinforms_get_email_field() . "\" placeholder=\"" . optinforms_form5_default_email_field() . "\" style=\"font-family:" . optinforms_form5_default_fields_font() . "; font-size:" . optinforms_form5_default_fields_size() . "; color:" . optinforms_form5_default_fields_color() . "\" />
Right after the closing bracket, add the following code:
<input type=\"text\" id=\"optinforms-form5-birthday-field\" name=\"BDAY\" placeholder=\"Enter Your Birthday MM-DD-YYYY\" style=\"font-family:" . optinforms_form5_default_fields_font() . "; font-size:" . optinforms_form5_default_fields_size() . "; color:" . optinforms_form5_default_fields_color() . "\" />
We’re almost there. You need to edit the name=\"BDAY\"
value from BDAY
to the birthday field identifier with MailChimp (or any other email solution you end up using).
Also, change the placeholder text. I’ve set it up as Enter Your Birthday MM-DD-YYYY
but you can easily change it to whatever works for you.
Once again, you would need to repeat these steps each and every time you update the plugin.
Hope you get it done and it works as you expected ??