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.

Forms with Ajax having extra line break inserted

  1. tracedef


    We're noticing that some forms are displaying differently if they have Ajax turned on. It looks like there's an extra line break being added when Ajax is enabled when inserting via a shortcode. This causes the form to move down with an extra unnecessary line break .... I have a feeling this is related to the fact that we're inserting the code into a "slide" custom post type in the WooTheme Canvas theme, which is then shown in their slider as it does not happen on normal pages.... any ideas on how to prevent this from happening or is this something that looks like is occuring due to how the theme is handling the short code?

    This is what is occurring with no ajax:

    div id="gform_wrapper_1" class="gf_browser_gecko gform_wrapper">
    <form id="gform_1" action="/" enctype="multipart/form-data" method="post">
    <div class="gform_heading">

    Here is WITH Ajax:

    <div id="gform_wrapper_1" class="gf_browser_gecko gform_wrapper">
    <a class="gform_anchor" name="gf_1"></a>
    <form id="gform_1" action="/#gf_1" target="gform_ajax_frame_1" enctype="multipart/form-data" method="post">
    <div class="gform_heading">
    Posted 9 years ago on Wednesday November 16, 2011 | Permalink
  2. I can't reproduce it the issue. Usually when you see extraneous markup added in your form, it's another plugin or some script in the theme itself that's adding it when the shortcode gets processed.

    screenshot (no ajax, no break tag):
    screenshot (ajax enabled, no break tag ):

    Posted 9 years ago on Thursday November 17, 2011 | Permalink