WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
textarea width (2 posts)

  1. 4Lott
    Member
    Posted 5 months ago #

    Hi there,
    II've changed themes recently and all works fine except for the width of my contact form boxes. They used to be full width and now display as small boxes. Can I change css? Which code do I use for full width display?
    Thanks!

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

  2. buzztone
    Member
    Posted 5 months ago #

    This is due to CSS styling applied to standard HTML form elements within your current WordPress theme.

    To change the style of your CF7 forms you would need to edit the CSS style sheets used by your WordPress theme.

    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.

    The most common and preferred method is to create a Child Theme and make any necessary additions to the CSS in the child themes style.css only, rather than directly in the themes styles.css. That way you don't loose your changes when you update the theme.

    Use Firebug or Chrome Dev Tools 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.

    Also good idea to target CSS classes & ids used within your CF7 forms only, so that your CSS changes don't inadvertantly effect other elements on your website.

    If you are uncomfortable editing CSS style sheets you may prefer to use a custom CSS plugin like My Custom CSS.

Reply

You must log in to post.

About this Plugin

About this Topic