• Have a site that needs the tags of some posts/pages to be left open (div, li, etc) to fit the design. I want the client to edit the post/pages in visual mode, but when switching from HTML to visual, SWASH! all the tags are closed, destroying the layout big time.

    How do I get WP to leave the code as it is, even when editing in Visual mode?
    I tried the Plugin ‘TinyMCE Valid Elements’, and it helps volumes to leave tags as they are, do cant help me to leave them open.

    Is this a hack for the TinyMCE?
    IDEAS?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Have a site that needs the tags of some posts/pages to be left open (div, li, etc) to fit the design.

    Honestly, this is bad HTML practice. I’d correct your design to not need this.

    I’ll second that. Seriously.

    Besides, you can’t work with open tags in visual mode; when the view is rendered, the browser closes the elements whether they’re explicitly closed in the HTML or not. It has to. There’s no way around that.

    Thread Starter bohoe

    (@bohoe)

    I know its not good practice. And I am fixing it, but needed to know whether this is possible or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dont close my HTML tags’ is closed to new replies.