• Inside a Page (static post), I have a form with 5 hidden fields. Each hidden field is creating a line break.

    Any thoughts?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Can we have a link to one of the pages where this is happening?

    Thread Starter faxxy

    (@faxxy)

    Actually fixed it. This did the trick:

    — functions-formatting.orig
    +++ functions-formatting.php

    @@ -57 +57 @@
    -function wpautop($pee, $br = 1) {
    +function wpautop($pee, $br = 0) {
    From:
    https://dsandler.org/wp/archives/2005/03/07/turning-off-automatic-line-breaks-in-wordpress-15

    I totally forgot I did that in 2.0

    Good find! Always nice when you happen on an answer.

    So how do I get to this file?

    Is it through the WP Admin section under presentation/themes?

    Thanks for your help!

    No. You edit the file on your computer and upload it. Make a backup first.

    Sorry, I’m new to this stuff, What is the filename/folder location etc? I completed a normal install on Dreamhost.

    What folder in WP do I copy and DL the file from, I’m trying to fix this it has destroyed out contact form. And we cannot process any leasd – UGH!

    In the third post it says quite clearly: functions-formatting.php
    I’d bet it’s in the wp-includes folder.
    Alternatively, you can take a look at this cobtact form plugin:
    https://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/

    It fixed my formatting but now when I try to post or view the post page in wp-admin I get this error:

    “Warning: Cannot modify header information – headers already sent by (output started at /home/.jennifer/bunch/simplesem.com/wp-includes/functions-formatting.php:1) in /home/.jennifer/bunch/simplesem.com/wp-admin/inline-uploading.php on line 5

    Warning: Cannot modify header information – headers already sent by (output started at /home/.jennifer/bunch/simplesem.com/wp-includes/functions-formatting.php:1) in /home/.jennifer/bunch/simplesem.com/wp-admin/inline-uploading.php on line 140″

    Any ideas?

    The form looks great, now I just cannot use the CMS ??

    Oye, this is not that easy. I used a text editor to change the .php file is this correct?

    There is probably a space or line break before the first <?php or after the last ?>.

    In the post? In the file I just edited? In what?

    Thanks…this is so frustrating, I SUPER appreciate the help what a pain.

    Thanks to all who helped, all I needed was a real .php editor, the Text file wasn’t converting the code properly.

    THANKS SO MUCH.

    You all rock.

    -Jeremy

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Hidden fields in forms creating line breaks after 2.01 upgrade’ is closed to new replies.