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

Hardcode a form in Contact Form 7 [closed]

I’ve looked for this some time ago. Best thing you can do is change the default contact form. Filter you can use: wpcf7_default_template Info can be found in contact-form-7/includes/functions.php file line 63 The filtered variable is: $template=”<p>” . __( ‘Your Name’, ‘contact-form-7’ ) . ‘ ‘ . __( ‘(required)’, ‘contact-form-7’ ) . ‘<br />’ . … Read more

echo do_shortcode for Contact Form 7 from within dynamically loaded php file

From what you have shown, downloadform.php never loads WordPress, hence naturally do_shortcode() is not available. You need to implement your AJAX using this Codex article: http://codex.wordpress.org/AJAX_in_Plugins Another alternative I would suggest is loading the contact form in a hidden div during the initial page load and then display the hidden div when users click whatever … Read more

Pass get data from anchor URL [closed]

The problem you are encountering is that WordPress and your browser are interpreting everything after the “#” as a client side hash. In other words, PHP and WordPress never see the “?tier=Test1” bit. There are few ways to fix the issue though I’m not sure which will be most efficient in your situation: 1) Trigger … Read more