WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Hide comments on main page

[Resolved] Hide comments on main page

  • Hi,

    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?

    Thx!

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

    @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?

    esmi

    @esmi

    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.

    Hey,

    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: http://0307438.netsolhost.com/dgirls/

    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 ‘[Resolved] Hide comments on main page’ is closed to new replies.