Forums

Dont close my HTML tags (4 posts)

  1. bohoe
    Member
    Posted 3 years ago #

    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?

  2. 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.

  3. sojweb
    Member
    Posted 3 years ago #

    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.

  4. bohoe
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic