Styling Contact Form 7 fields [closed]

I din’t try it, but have a try yourself: Contact Form 7 uses something like this: <p>Your Name (required)<br /> [text* your-name] </p> Instead of using paragraph tag (<p>) use span (<span>), and some inline CSS, like: <span style=”width: 48%; float: left; position: relative;”>Your Name (required)<br /> [text* your-name] </span> <span style=”width: 48%; float: left; … Read more

Contact Form 7: Load scripts and styles only when there is shortcode? [closed]

This isn’t based on shortcode detection, but you could try // Add the Contact Form 7 scripts only on the contact page function deregister_cf7_js() { if ( !is_page(‘contact’)) { wp_deregister_script( ‘contact-form-7’); } } add_action( ‘wp_print_scripts’, ‘deregister_cf7_js’ ); function deregister_ct7_styles() { wp_deregister_style( ‘contact-form-7’); } add_action( ‘wp_print_styles’, ‘deregister_ct7_styles’); from http://wptheming.com/2009/12/optimize-plug-in-script-wordpress/ I think you could change the wp_print_styles … Read more