Contact Form 7
Suggestion for checkboxes (3 posts)

  1. jp2112
    Posted 5 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>';


    $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
    Plugin Author

    Posted 5 years ago #

  3. jp2112
    Posted 5 years ago #

    Even better, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic