Support » Fixing WordPress » Hide comments on main page

  • Resolved Cam_DGAT



    I’m using the InuiTypes theme and I’m having trouble hiding the comments on the main page. I want the number of comments to either not show or only show when there is one or more comment. Does anyone know how I can achieve this? Is it even possible?


Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    <?php if(have_comments()) : ?><?php comments_popup_link( ... ); ?><?php endif;?>

    Thanks, but I’m having trouble using this code. It doesn’t seem to affect the comments at all. Is there anything else I can do?



    Forum Moderator

    That code should work. Did you remember to press CTRL and F5 simultaneously when viewing the updated page? Or try emptying your browser cache? This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.


    I’m refreshing the page as I’m updating and still not seeing the change. I even emptied the browser cache. Just to be clear, I put the above code in “comments.php” and I replace the “(…)” with something like “( ‘One comment’, ‘% comments’, ‘comments-link’, ‘Comments are closed )?” I tried it both ways to no success. Do you think it’s just the theme? Am I putting the code on the wrong page maybe?

    Thank you!

    PS- This is the site in question:

    Fixed it! I went to the index.php page and found everything.

    Thanks so much!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide comments on main page’ is closed to new replies.