WordPress "add new page" HTML editor
-
I am using the AgentPress 2 theme by StudioPress and WordPress version 3.2.1. I created a new page within my site where I want users to find my contact information and fill out a contact form to request information. The contact form works correctly on my existing web page but not in my WordPress web site.
When adding a new page to my WP web site, I am using the WP HTML editor. I wrote the HTML code for the contact information and contact form. WordPress adds invisible closing </p> tags which causes the page not to validate and throws off the alignment of the label and textbox. Adding in the opening <p> tag the page will validate however the alignment of the label and textbox is still off.
You can see the </p> tags applied by WP when validating the page in Firefox using firebug.
Without the P element the label is on the same line as the input box which is what I want (saves space vertically).
Example:
<label class=”mylabelcontcol” for=”firstname”>First Name:</label></p> (invisible P tag)
<input type=”text” name=”firstname” id=”firstname” tabindex=”1″/>How can I prevent WP from randomly applying these tags as it doesn’t add to all rows of like code?
Do professional WP developers have a different editor or means of creating pages with the expected results for WordPress? I have seen many examples of web sites built using the AgentPress 2 theme so there must be a way to correctly code the pages and avoid this issue.
The class=”mylabelcontcol” above is my css code for adding a little space vertically between the input boxes and labels.
- The topic ‘WordPress "add new page" HTML editor’ is closed to new replies.