Question Protected by fuxia
5 change title to be more descriptive
| link

I want to use HTML5 in my WordPress theme, how How do I turn off wptexturizeself-closing tags for markup in WordPress (for HTML5, or HTML4, for example)?

4 edited tags
| link
    Bounty Ended with John P Bloch's answer chosen by Community
    Bounty Started worth 150 reputation by artlung
3 Missed out on several issues related to HTML5 validation.
source | link

I want to use HTML5 in my WordPress theme, how do I turn off wptexturize?

I don't mind WP adding breaks, but I want them to be <br> and not <br />. How do I get control over how those breaks show up in my code?

EDIT: I only really care about the <br> tag issue, I don't mind the typographic changes it makes.

EDIT2: Actually, I guess <img> tags matter too. Any self-closing standalone tags will matter here. So, <hr> might be an issue as well. Not to mention such wp_head() items as <link> and various <meta> tags.

I want to use HTML5 in my WordPress theme, how do I turn off wptexturize?

I don't mind WP adding breaks, but I want them to be <br> and not <br />. How do I get control over how those breaks show up in my code?

EDIT: I only really care about the <br> tag issue, I don't mind the typographic changes it makes.

I want to use HTML5 in my WordPress theme, how do I turn off wptexturize?

I don't mind WP adding breaks, but I want them to be <br> and not <br />. How do I get control over how those breaks show up in my code?

EDIT: I only really care about the <br> tag issue, I don't mind the typographic changes it makes.

EDIT2: Actually, I guess <img> tags matter too. Any self-closing standalone tags will matter here. So, <hr> might be an issue as well. Not to mention such wp_head() items as <link> and various <meta> tags.

2 added 107 characters in body
source | link
1
source | link