Social Ink explains how to show when comments are ON (rather than the default setting) and how to maintain that preference through updates.

You can contact us directly at info {at} social-ink.net, or give us a call at (347) 788-8465.

Your name (required)
Company
Your email (required)
Project scope (required)  Web Design CMS/WordPress Identity/Branding ECommerce Plugin/Theme Support
Approximate budget
Current website
How can we help? (required)
Humans, please answer the following: How many fingers do you have on your hand? 
All set?

Want more Social Ink? Be sure to check out some of our featured work!

(scroll up or click here to close ↑)

WordPress Tips: Removing “Comments Off”

So, you have a site with limited commenting. Since having comments off is the default behavior, we only really want to let people know when comments are *on*. Sure, you could hack into the backend and edit a line in wp-includes/comment-template.php, but that will get replaced every time you upgrade.

Instead, edit your comments_popup_link where it appears in archive.php, single.php, etc.

You want probably have something like this:
comments_popup_link ( 'No Comments', '1 Comment', '% Comments' )
Which is actually expandable, you can define a css class to wrap the comment notice and define the comments off message:
comments_popup_link ( 'No Comments', '1 Comment', '% Comments', 'MyCssClass', 'Comments Off' )
then, of course, remove the comments off text, leaving only the single quotes:
comments_popup_link ( 'No Comments', '1 Comment', '% Comments', 'MyCssClass', '' )

et voila!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>