Viewing 9 replies - 16 through 24 (of 24 total)
  • I provisionally solved it in a rough way, if you want your form to look like before, just put the fields this way:

    Name: [text* your-name]

    This will show up:

    Name:
    [name field]

    Thread Starter freshifreshy

    (@freshifreshy)

    Yeah, but what if you don’t want a line break at all…

    That’s the f* problem.

    Thread Starter freshifreshy

    (@freshifreshy)

    Can’t recall if there was an update, but I’m not having this problem any more.

    I have the same problem, e.g. here: https://zuerichtennis.vereinsportal.org/turniere-events/kerenzerberg

    I have no idea how to get rid of the br. Anyone else?

    I’m having the same problem. I’m not using the same Contact form plugin, just inserted a search form and can’t put the text on the same line as the input tag. Any solutions?

    This is really a disappointment from such a great, reliable plugin.

    Why, why, why would they do this? Ok…I understand…they are considering the lowest common denominator—general purpose users-but still at least make it an option (Check here to auto format your form).

    I hope the developers fix this. This is going to compromise a lot of existing sites, right??????

    Here is my workaround:

    .wpcf7-form-control-wrap br {display: none!important;}

    Reason:
    1) Editing the core plugin file will just result in it being overwritten the next time you run the update.

    2) The wp-config.php edit didn’t work either, which seems like another issue in and of itself.

    3) I can insert my own <br class=”myBreak” /> and make those appear where I want them.

    May be time to look for a better plugin. Suggestions?

    C’est la vie.
    *ian

    I posted about this a few weeks ago.

    The solution I came up with was a serious hack, but there was no other way around it short of editing the plugin’s core code. Just stick this somewhere in your theme’s functions.php and it should work:

    add_filter("wpcf7_mail_tag_replaced", "suppress_wpcf7_filter");
    function suppress_wpcf7_filter($value, $sub = ""){
    	$out	=	!empty($sub) ? $sub : $value;
    	$out	=	strip_tags($out);
    	$out	=	wptexturize($out);
    	return $out;
    }

    Also note that this is NOT the same issue as not having the “WPCF7_AUTOP” constant defined to FALSE; this issue’s a completely different one altogether. The most recent build of the plugin “features” mandatory autop formatting of the submitted post; which means all your field references are going to be broken up line by line, whether you like it or not.

    So something like this:

    Name: [text* first-name] [text* surname]

    Is going to come out looking like this:

    Name:
    Henry
    
    Anderson

    Total pain in the ass.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘[Plugin: Contact Form 7] Auto Inserts Line Break?’ is closed to new replies.