WordPress.org

Ready to get started?Download WordPress

Forums

WordPress adds extra <p> tags and its screwing up my design (2 posts)

  1. brettalton
    Member
    Posted 4 years ago #

    I have:

    <div id="slogan-wrapper">
    <div id="slogan">
    <h1>Customize any way you want it...</h1>
    With Ontario's most <strong>advanced</strong> apparel and trophy design studio, you get a <strong>perfect</strong> design, every time.
    </div><!-- slogan -->
    </div><!-- slogan-wrapper -->

    which produces:

    <div id="slogan-wrapper">
    <div id="slogan">
    <h1>Customize any way you want it…</h1>
    <p>With Ontario’s most <strong>advanced</strong> apparel and trophy design studio, you get a <strong>perfect</strong> design, every time.</div>
    <p><!-- slogan --></div>
    <p><!-- slogan-wrapper -->

    And no matter how I change the whitespace when editing in 'HTML', WordPress always seems to find a way to screw it up and add extra <p> tags

  2. Capn Code
    Member
    Posted 4 years ago #

    Try the following syntax for comments:

    <!-- Hidden! -->

    Discussed in this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic