• Hello,
    I am having trouble with unwanted tags on posts.

    I like to code things manually as I am an XHTML expert and dont need a pretty editor etc.

    The example of my problem is at https://www.diffengrecordings.com/

    The code I want to use is:

    <!-- open full --><div id="full">
    Thanks for visiting '<strong>Diff Eng Recordings</strong>' <a href="https://www.diffengrecordings.com/the-engineer/the-engineer">1</a>.
    Please enjoy using the site and if you have any enquiries please direct them to me, <strong>Redacted</strong> by <em>E-Mail</em> at  <a href="mailto:redacted">[ email redacted ]</a> or by <em>Phone</em> on <strong>also redacted</strong>."
    <!-- close full --></div>
    <!-- open clearing --><div class="clearing">?<!-- close clearing --></div>

    When WP renders my page it adds p and br tags on some of the lines (I cannot copy and paste the code hear as it disapears – https://www.diffengrecordings.com/)

    I want to enter all the XHTML code I dont need wordpress to do it. How can I change this?

    Pretty sure WP used to ship with a plugin that allowed you to completed switch off formatting. I am using WP 2.
    Alan.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can turn off the visual rich editor in the dashboard 2 ways –

    If you are the only user of your blog, just go to Options – Writing and uncheck the box that says “Users should use the visual rich editor by default” (as well as “WordPress should correct invalidly nested XHTML automatically” if you really want complete control).

    If there are other users that might need the VRE, then you can turn it off just for your profile under Users, down near the bottom where it says Personal Options. Uncheck “Use the visual rich editor when writing.”

    Try the Text Control plugin. It lets you control all that formatting stuff.

    I’ve turned off the WYSIWYG editor both for the default and for my user account and WordPress is still inserting its own BR tags. What gives?

    Hi there,

    It seems I have the same problem, but in a different context. Whenever I include some picture in any post which I put in <div align="center">, WordPress automatically adds a \<p>\ marker between the \<div align=”center”>\ marker and the \<img>\ one, without adding any \</p>\ at the end! Naturally it gives me XHTML mistakes.

    In the Options I unchecked the “WordPress should automatically check and correct XHTML” box.

    Whenever I tried to add the missing </p>, WordPress simply erases it when publishing, which keeps me from removing the XHTML mistake.

    Can somebody help me please? Thank you so much in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unwanted p and br tags’ is closed to new replies.