• I’m developing a custom theme and I get all basic files copied from default theme tewntyseventeen, including the file comments.php

    Comments are not showing even I’v enabled everything from backend. I’ve enabled comments in settings, individua post and everything. If I included comments form inside my theme folder, it wont show anything after comments div. it shows everything before comments section, but it kinds of breaks every div after the comments section.
    I used different div below the post content to show comments,

    <div class="custom-comments">
    <?php 
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>
    </div>

    and I didn’t do any alterations into comments.php file.

    Note: whenever I removed the comments.php file from my theme folder, comments are loading.

    What is the problem here? How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Can’t really tell without seeing the code or any errors. I suggest starting from a blank theme like underscores or Bones (or any other blank theme for development) to create a custom theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Comments won’t show’ is closed to new replies.