Spaces in widget forms
-
I can see quite a big blank space between the email field and the subscribe button. Here it’s said that it can be fixed through CSS: https://support.mailpoet.com/knowledgebase/design-style-subscription-form-widget-shortcode/
But the problem is not the margin-top of the Submit button. As I can see in the HTML code of the page there are three line-breaks created by the widget’s PHP just after the input field:
<form id="form-wysija-2" method="post" action="#wysija" class="widget_wysija"> Join our 3 subscribers to receive updates from our site. <p class="wysija-paragraph"> <input id="form-validation-field-0" name="wysija[user][email]" class="wysija-input validate[required,custom[email]]" title="(your email address)" placeholder="(your email address)" value="" type="text"> <span class="abs-req"> <input name="wysija[user][abs][email]" class="wysija-input validated[abs][email]" value="" type="text"> </span> </p> <input class="wysija-submit wysija-submit-field" value="Subscribe!" type="submit"> <input name="form_id" value="1" type="hidden"> <input name="action" value="save" type="hidden"> <input name="controller" value="subscribers" type="hidden"> <input value="1" name="wysija-page" type="hidden"> <input name="wysija[user_list][list_ids]" value="1" type="hidden"> </form>
As far as I know line-breaks cannot be removed through CSS.
I think the widget should be improved in order to avoid those spaces and let users control the space via the CSS attributes.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Spaces in widget forms’ is closed to new replies.