Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Unwanted <br> before each <input> field?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 5, 2011, 12:01 AM
billc108
 
22 posts · Jun 2009
Unwanted <br> before each <input> field?

I'm not sure if this is an Atahualpa thing or a WordPress thing... I figured I'd start here and broaden the search for an answer to the WP forums if needed.

I'm building a form at <http://directory.sustainablesources.org/get-listed/>, and something is inserting a <br> before every <input> field. (Sorry, you have to be logged in to see the form. Feel free to use "sstest" for both username and pass.)

I've got Unfiltered MU plugin on it, so it should theoretically be showing my code as I entered it:

<strong>Contact Name: </strong><input type=text .....

etc. No line breaks anywhere between the field name and the input field. Instead, it's displaying in firebug as:

<strong>Contact Name: </strong>
<br>
<input type=text .....

Any ideas? Is there an better "don't mess with my code" plugin than Unfiltered MU?

Thanks.
  #2  
Old Mar 5, 2011, 03:34 AM
juggledad's Avatar
juggledad
 
22,244 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
WordPress has a habit of adding is some extra html (try putting this in a post ' hello this<h2>is an H2</h2> and this is not' and you will get three lines)

For example, Atahualpa sets up some info for the comments form, then it calls the WordPress function 'comment_form()' to actually build the form.

There are lots of complaints about the fact that WordPress adds extra <br>'s and <p>'s into code. It's especially bad when you use the HTML editor and expect to see what you coded.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 6, 2011, 11:07 AM
billc108
 
22 posts · Jun 2009
That's what I was afraid I'd hear.

So, any workarounds?
  #4  
Old Mar 6, 2011, 11:26 AM
billc108
 
22 posts · Jun 2009
I think I found a way out of this:

http://codex.wordpress.org/Function_Reference/wpautop

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show custom field in kicker - only IF field value exists jaxon Center area post/pages 13 Feb 6, 2013 01:11 PM
[SOLVED] Strange Issue - Search Box won't accept input. Steve41 Header configuration & styling 4 Jan 5, 2011 11:21 PM
Custom field image with custom field link mbastos Atahualpa 3 Wordpress theme 1 Jul 1, 2010 08:17 AM
Styling the comments area title font, form field and label font, and form field sizes jkintzele Comments, trackbacks & pings 5 Nov 10, 2009 09:18 AM


All times are GMT -6. The time now is 05:58 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.