WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide comments on main page (6 posts)

  1. Cam_DGAT
    Member
    Posted 4 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

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

  3. Cam_DGAT
    Member
    Posted 4 years ago #

    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?

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  5. Cam_DGAT
    Member
    Posted 4 years ago #

    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/

  6. Cam_DGAT
    Member
    Posted 4 years ago #

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

    Thanks so much!!!

Topic Closed

This topic has been closed to new replies.

About this Topic