• 1. How do I get the comment link jump down working? Right now when you click on comments the permalink page loads at the top of the page, not where the comment form is.

    https://www.gollygolly.com

    2. How do I get the text to say “Comments are Closed” when I turn comments off for a specific post? I have

    <?php comments_popup_link('0&nbsp;<span>Comments</span>', '1&nbsp;<span>Comment</span>', '%&nbsp;<span>Comments</span>', 'commentslink', '<span class="commentslink">Closed</span>'); ?>

    for the comment link, but they never say that they are closed – see this page – https://www.gollygolly.com/category/photos/ – They all say “0 comments” when comments are closed for these items.

    Any help with these items is greatly appreciated. My site is also runing a bit slow because of a plugin, so be patient please ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter faustina

    (@faustina)

    Got the Comment Jump working – #1

    as for #2, anyone know if this is a bug? My code is correct, but it ever shows “closed” for posts with comments closed.

    Any help is greatly appreciated.

    Hmm. I put your code in a (local) test install of mine and it works. However, you have to disable both the comments and pings in order to have the “closed” displayed.

    Thread Starter faustina

    (@faustina)

    ah, let me try that. I hope that does it.

    Thread Starter faustina

    (@faustina)

    ok, disabling pings makes it work on index or archive pages but this code:
    <?php if (is_single) { // To hide comments entirely on Pages without comments ?>
    <li>Comments are currently closed.</li>
    <?php } ?>

    should also make it say “comments are currently closed” on the permalink page, but it does not – nothing shows up there. Is that code correct also?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2 Comment Questions’ is closed to new replies.