You should be able to remove the old CSS for the previous form
div.entry-content-contact-form { width:550px; float:left; }
div.contact-form-container { -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; border: 1px solid #dcdcc8; padding:70px 25px 25px 25px; margin-bottom:25px;background: url("images/stripes.png") repeat-x scroll 0 15px #FFFFFF;}
div.contact-sidebar { float:left; border-left:1px dotted #dcdcc8; width:270px; margin-left:75px; padding-left:75px; }
div.contact-col-one { float:left; width:210px; margin-right:40px; }
div.contact-col-two { float:left; width:230px }
You don't need that anymore.. just the new styles for your Gravity Form.
As far as embedding the form, you don't need to use the "do_shortcode" method as Gravity Forms has it's own function call.
<?php gravity_form(1, false, false); ?>
You would just replace the "1" with the actual ID of your form.
Note: When using a Gravity Form in a sidebar widget or embedding it anywhere using the function call, you need to manually enqueue the scripts and CSS by placing a short script block in your theme's functions.php file.
wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.4.5", true);
wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.4.5", true);
wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.4.5", true);
wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");
Without this, the conditional logic scripts, datepicker script, form CSS and other elements needed for the full form functionality aren't loaded.
You can find more information at the URL below
http://www.gravityhelp.com/documentation/embedding-a-form/
Posted 13 years ago on Monday February 7, 2011 |
Permalink