• I have a page, pretty much all of them, that has markup on it. Basically, some opening div tags followed by some content…

    the closing div tags occur in the widget area that is called into the page.

    The problem I’m having is that when I edit the page in Visual Mode and click Update, WordPress is closing those div tags prematurely.

    Is there a way to stop this?

    The Raw HTML plugin didn’t work, neither did unchecking the “WordPress should correct invalidly nested XHTML automatically” box (although I think that just applies to posts).

    Any ideas on how to stop WordPress from unnecessarily closing tags?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you need to leave the div open? I know that seems like an obvious “yes”, but maybe there’s another way to achieve the same results without leaving it open.

    Thread Starter ClaytonDaniels

    (@claytondaniels)

    Right, I’m not sure why it was programmed that way. But it looks as if, on a few of the pages, there is markup in the page.

    The page content is placed in a div tag with an id=col-62… the other content that is pulled into the page (from a widget area) is placed in a div with an id=col-38.

    Those widgets that are called in have code that is closing the col-38, col-62 and main div tags.

    I didn’t program it that way, that how I got it. And now it seems to be ruining some of the pages.

    This could all be resolved if WordPress wouldn’t close out the tags. I know why it is doing so, it think the markup is incorrect, but this can’t be the first time a Page has had markup in it that was being used to call in widgets. Maybe?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress editor on Pages closing html markup prematurely.’ is closed to new replies.