• Resolved Jim R

    (@jim-r)


    As part of a form, I have several hidden elements, and after each one, my theme adds a “br” tag. It causes layout issues and pushes the content they need to see down the page way too far.

    I understand it might be a theme issue, but any suggestions of how to get rid of this?

    I tried wpautop = false in the Custom Fields of the Page in question. That didn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You may check if you have the same problem with a WordPress default theme (2012 or 2013) to see if it’s a theme-specific issue.
    What theme are you using? Where did you download it from?

    Thread Starter Jim R

    (@jim-r)

    In the past, I haven’t had the same issue with one of the default themes. I couldn’t find my fix from a previous theme, nor where I found it on here.

    What I did, for those having the same issue, is a bit of a CSS trick.

    (name of .class or #ID)
        br {
    	display: none;
    	}

    So just for the “br” within your ID or class tag disappears.

    Just put the hidden <input> tags all on one line.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML Form adding BR after each hidden element…’ is closed to new replies.