WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Suggestion for checkboxes (3 posts)

  1. jp2112
    Member
    Posted 3 years ago #

    I am using this plugin and find that the checkboxes are lined up horizontally, which doesn't look so good. I don't see a way to fix this within the plugin options page, so I hacked the source code. Here's what I did, in case anyone else is interested:

    In the contact-form-7/modules/checkbox.php file I changed

    $item .= ' <span class="wpcf7-list-item-label">' . esc_html( $label ) . '</span>';

    to

    $item .= '<span class="wpcf7-list-item-label">' . esc_html( $label ) . '</span><br />';

    All of the checkboxes in the setup (label first, wrap each item, etc) must be left unchecked.

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

  3. jp2112
    Member
    Posted 3 years ago #

    Even better, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic