PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Formatting forms in the Socrates Theme

  1. OK, total newbie here. I've built a form and installed it at http://www.smminteractive.com/fbtab/hire-2. It shows up as a bulleted list which I don't want. I have read the FAQ and I did add the suggested CSS to the theme Style.css file but it did not help. Any thoughts?

    Posted 14 years ago on Monday April 11, 2011 | Permalink
  2. Your default forms.css file isn't being loaded. How are you adding the form to the page? I'm assuming you're using the php function call. You may need to manually enqueue the css/scripts to get the formatting in check.

    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.

    if(!is_admin()) {
        wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.4", true);
        wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.4", true);
        wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.4", 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/page/Embedding_A_Form

    After that, if you're still seeing the bullets then we can work that out.

    Posted 14 years ago on Monday April 11, 2011 | Permalink