• Resolved h00ters

    (@h00ters)


    Hi guys,

    A while ago I had an issue where I wanted each of my checkboxes in a contact form to display on their own line.

    I applied span.wpcf7-list-item { display: block; } to my style sheet and it all was working fine.

    Since updating to WordPress 3.7.1 and Contact Form 3.5.4 I’ve found the problem has returned and my checkboxes are all stuck together in one big clump.

    Is anyone able to help me get each checkbox back on its own individual line?

    Cheers!

    http://wordpress.org/plugins/contact-form-7/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can I see the page?

    Thread Starter h00ters

    (@h00ters)

    An example can be found here.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    So where have you put the span.wpcf7-list-item { display: block; } in?

    Thread Starter h00ters

    (@h00ters)

    Sorry it’s taken me so long to reply, I’ve been traveling for work.

    It is pasted in my style.css which looks like the following:

    /*
    File Name: style.css
    Theme Name:  RT-Theme 10
    Author: Tolga Can
    Version: 1.0.1
    Author URI: http://themeforest.net/user/stmcan
    Description:   Theme designed by <a href="http://themeforest.net/user/stmcan">stmcan</a>
    Tags: Corporate, Product, Business
    */
    span.wpcf7-list-item { display: block; }
    Thread Starter h00ters

    (@h00ters)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    It will be reset when you update the plugin.

    @h00ters – the link you mention is IMHO a very inappropriate way to address this issue. Others reading this post should NOT follow this approach. As Takayuki points out – this solution will stop working if you update the Contact Form 7 plugin (as you should regularly).

    This is a CSS styling issue. You should not be hacking the plugin code like this. You certainly don’t need to do it to solve this issue.

    See Styling Contact Form for a general explanation of styling CF7 forms using CSS. If you are not familiar with CSS, this page also includes some links to where you can learn CSS.

    Use Firebug or Chrome Dev Tools to to examine the HTML and CSS of your CF7 form in detail. Once you understand how the HTML and CSS is configured in your CF7 form, you should be able to see the CSS changes you need to change the appearance of the form to suit your requirements.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘New line for each checkbox?’ is closed to new replies.