WordPress.org

Support

Support » How-To and Troubleshooting » Multiple Line HTML Commenting Does Not Work

Multiple Line HTML Commenting Does Not Work

  • Multiple Line HTML Commenting Does Not Work…

    For example
    <!–
    blah blah
    blah blah
    –>
    does not work

    only
    <!– blah blah –>
    works

    I find this annoying and would appreciate knowing if this or any other comment tag works to enclose several lines – or can be made to work by some coding or plug-in measure, preferably simple!

Viewing 2 replies - 1 through 2 (of 2 total)
  • When I say does not work,
    I mean that wordpress just displays everything within the comment tags,
    and also the comment tags themselves, for multiple lines.

    Please don’t just suggest “hey don’t use long commenting” or such 😉
    I would appreciate knowing if and how it is possible.

    To clarify, I am in HTML editor OK
    (or presumably the single line comment would not work!)

    The only thing I could find that might seem a useful quick workaround was
    <div style=”display: none;”> </div>
    Unfortunately, this too is very quirky in what is and is not shown…
    it does not seem to obey the </div> closing tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Line HTML Commenting Does Not Work’ is closed to new replies.
Skip to toolbar