• I’m going to keep COMMENTS off. Unfortunately, in my blog, under each post, COMMENTS OFF eats up signficant space saying so. I’d either like to eliminate this bar or at least replace the text with a different message.

    Which file do I change? (1.2.2 user)

    I’M ABOUT TO SAY HOW MUCH I’M DIGGING THIS WORDPRESS AS A REAL SOLUTION: I’m digging this WordPress as a real solution.

Viewing 11 replies - 1 through 11 (of 11 total)
  • wp-comments.php has the following logic

    !– If comments are closed. —
    p class=”nocomments” Comments are closed. /p

    Is that the message you’re getting?

    Thread Starter TheOneAndOnly

    (@theoneandonly)

    I looked in that file and didn’t find the words COMMENTS OFF, which is what I’m seeing. It’s in a grey bar below each post. If comments were on, this is the same bar that would tabulate comments numerically.

    ‘Comments Off’

    * Line 58 of wp-includes/template-functions-comment.php has the words ‘Comments Off’ (1.2mingus)

    (Answered here before)

    Thread Starter TheOneAndOnly

    (@theoneandonly)

    Thanks man. Concerning previous posted answers, I just want to make it clear that at least this newbie is trying to find answers before posting, since it saves time for both of us. I did search, but I must have not found the key word to make the search fruitful.

    Sorry.

    THINKING OUT LOUD: Not that I don’t want people using WP, but I think it’s kind of weak as forum software the way this site uses it. Pride aside, PHP boards would offer a better method of storing and finding stuff– since discussions could be split between WP versions and subheading categories almost endless.

    Still, I appreciate this place very much for what it offers, and endeavor to offer support once I know enough. That will be a while still unfortunately.

    Anyhow, thanks again.

    For future reference, this does not need to be edited directly in template-functions-comment.php, as there is a parameter for it (‘none’) in comments_popup_link:

    https://codex.www.ads-software.com/Template_Tags/comments_popup_link

    george71

    (@george71)

    I just upgraded my blog to 1,5 and I want to hide the display of “comments off” Can someone explain step by step how to do this, as I don’t really understand how to alter the parameters in my new 1.5

    thanx George

    On line 90 of “comment-functions.php” is this

    function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off')

    Just alter the ‘Comments Off’ there ??

    (Line number as counted by notepad++ https://notepad-plus.sourceforge.net/ )

    george71

    (@george71)

    thanx again Podz :-)))

    I would recommend changing your template rather than the core. The example found on the link Kafkaeski gives is a good one.

    <?php comments_popup_link('No comments yet', '1 comment so far',
    '% comments so far (is that a lot?)', 'comments-link', 'Comments are
    off for this post'); ?>

    I’m running WordPress 2.0.2 and am having problems with “Comments Off” no longer being displayed. Instead you press “No comments” only to find you can’t post any comments. I’m sure my posts used to say “Comments Off” but no longer…

    I want to got this working again, and have found some information on it, like that there’s a pluggin called “Smart Comments Plugin v 2.0” which does exactly this – But now I’m not sure I want to install a pluggin yet or go about fancy ways of fixing this when I’m sure it was working originally.

    Any suggestions?

    I figured it out myself: Pings must also be unchecked in order for ‘Comments Off’ to be displayed.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Alter “comments off” text’ is closed to new replies.