WordPress.org

Forums

Subscribe2
[resolved] Line breaks between text field and buttons (10 posts)

  1. BeautyPirate
    Member
    Posted 3 years ago #

    Hey ya,

    Can someone tell me how to get rid of that extra line break between the
    text input field and the Subscribe/Unsubscribe buttons?

    Thanks a lot!

    http://wordpress.org/extend/plugins/subscribe2/

  2. BeautyPirate
    Member
    Posted 3 years ago #

    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";

  3. mattyrob
    Member
    Posted 3 years ago #

    @BeautyPirate,

    You seem to have answered your own question :) That should work just fine.

  4. BeautyPirate
    Member
    Posted 3 years ago #

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

  5. mattyrob
    Member
    Posted 3 years ago #

    @BeautyPirate,

    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;
    }
  6. BeautyPirate
    Member
    Posted 3 years ago #

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

  7. mattyrob
    Member
    Posted 3 years ago #

    @BeautyPirate,

    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. :)

  8. BeautyPirate
    Member
    Posted 3 years ago #

    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

  9. mattyrob
    Member
    Posted 3 years ago #

    @BeautyPirate,

    Only by editing the code :) It's in there are many hosting providers ask for it to be collected.

  10. BeautyPirate
    Member
    Posted 3 years ago #

    You will hate me now but: A checkbox option would be awesome. ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags