Empty p tags inserted before the select tag
-
I’m basically new to WP and am trying to migrate a subscribe form from an existing site to WP. The form is in a table and I’m finding that when existing tds have a colspan that includes several fields, WP often inserts a new line when none is called for. I was able to fix many of them by removing all spaces in the original code, but WP is still consistently creating a new line every time there’s a select box. When I examine the code with Firebug, WP is putting an empty p tag before each select box.
I thought maybe WP just didn’t like my table format but I tried putting the same code in a p tag and WP still inserted an empty p tag before the select box. A code sample is here – but it’s doing it in front of every select box – not just this one:
Federal Tax ID:<span class="redBold">^</span> <input type="text" name="taxid" value="" />Type:<span class="redBold">^</span><select name="taxidType"><option selected="selected" value="SY">SSN</option><option value="EI">EIN</option></select>
I don’t do the JS or PHP for this so the code above is incomplete. My job is just to get the basic HTML in place.
- The topic ‘Empty p tags inserted before the select tag’ is closed to new replies.