Forums

[resolved] single.php with and without comments.php closing div tag (5 posts)

  1. catalpha
    Member
    Posted 1 year ago #

    I can't figure out how to apply the <div> tags to the single.php and comments.php so a page WITHOUT comments displays correctly.

    See page WITHOUT comments enabled.

    See page WITH comments enabled.

    Can anyone offer any help.

    Thank you,
    Charlie

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    the error is probably in comments.php of your theme (a div opened or closed within a conditional area of the code)

    have a look at it yourself, or paste the code of comments.php into a http://wordpress.pastebin.com/ and post the link to it here.

  3. catalpha
    Member
    Posted 1 year ago #

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    no need to wrap the url of your pastebin - simply paste the url into your post, and it should automatically turn into a link.

    in the last few lines of comments.php,
    try and move the </div> to the position before the last endif line:

    i.e. from how it is now:

    <?php endif; // if you delete this the sky will fall on your head ?>
    
    </div>

    to this:

    </div>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
  5. catalpha
    Member
    Posted 1 year ago #

    That did it! Thank you.

    I must have tried moving that div tag everywhere BUT there.

Topic Closed

This topic has been closed to new replies.

About this Topic