Support » Plugin: Subscribe2 » [Plugin: Subscribe2] Line breaks between text field and buttons

Viewing 9 replies - 1 through 9 (of 9 total)
  • subscribe2/classes/class-s2-frontend.php

    Remove <p></p> tags, ONLY the tags, not the content of course.
    Just adding this in case anyone is looking for the same thing…

    $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><strong><p></strong><label for=\"s2email\">" . __('', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . __('Enter email address...', 'subscribe2') . "\" size=\"" . $size . "\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /><strong></p><p></strong>" . $this->input_form_action . "<strong></p></strong></form>\r\n";


    You seem to have answered your own question ๐Ÿ™‚ That should work just fine.

    Would be great to be able to manage that in the settings though because now itยดll be gone with every update.


    The other was to do it, without editing the code is to wrap the form in a div tag with an id or class. Then edit your theme CSS to include something like:

    .myclass p {
      margin: 0;

    I have no idea how to wrap a pre-set sidebar widget without, again, modifying the core. Do you?


    Go to the Widgets area in the WordPress admin, expand the Subscribe2 widget and where it says “Div class name” put in your class name. Simple. ๐Ÿ™‚

    Aaaaaah thats great! Thank you! One more question. Can I get the plugin not to lop the IP address from the users? Iยดm a privacy fanatic


    Only by editing the code ๐Ÿ™‚ It’s in there are many hosting providers ask for it to be collected.

    You will hate me now but: A checkbox option would be awesome. ๐Ÿ˜‰

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Subscribe2] Line breaks between text field and buttons’ is closed to new replies.