Support » Themes and Templates » Form styling – identical code, two different results!

  • I have an odd problem I’ve never run into before while converting my HTML template into WordPress. (HTML template works perfectly in ie, ff, etc…)

    On the wordpress #commentform style, I have some input padding and so on, creating nice large clean input fields. I have that same code for my custom php contact form. It works perfectly as a HTML template.

    Now… if I take the code and place the PHP form on a single.php page template, it works, if I put it on a custom page, the textboxes collapse to their original height.

    I just have a single style.css controlling it all.

    I ran a code compare between the two pages and they’re nearly identical, is there some hidden difference between page templates I’m not aware of?


Viewing 2 replies - 1 through 2 (of 2 total)
  • can’t really help unless you post a link.

    there is probably some conflicting styles. if you’re using plugins sometimes they add their own css.

    Thanks for the reply Dave – turns out it was an asp-style php tag not rendering on my local WAMP server… very odd as to why it caused those problems but updating <? to <?php fixed it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form styling – identical code, two different results!’ is closed to new replies.