Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is it possible to hide the string: "Comments are disabled" from everywhere?

I mean also from posts list, and post page :)

Thanks :)

EDIT:

sorry, the theme is Journal Cruch by Site5.com

However I resolved using

if (comments_open())
    comments_popup_link();

where the comments are displayed, but I don't like too much this solution :)

share|improve this question
    
I guess you can add this string in nearly every thinkable way, so: no.... unless you delete everything per hand. –  kaiser Mar 22 '11 at 17:30
    
To which theme are you referring? I don't have that text any longer with twenty ten in trunk. –  hakre Mar 22 '11 at 18:06

3 Answers 3

up vote 2 down vote accepted

Popup link takes five parameters.

comments_popup_link('No Comments','One Comment','Many Comments','CSSclass','Comments Disabled');

So you are on to the correct solution. Now just change the above strings to whatever you want them to be for each # of comments. Finally change 'Comments Disabled' to just ''. Or perhaps ' ' if it requires you to put something in there.

share|improve this answer

You can also hide it via css, something like: .comments_closed p { display: none; }

share|improve this answer

Try editing theme files and remove the php comments links, or add CSS to display:none to the comments div in your style sheet. But no one can help specifically unless you post some code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.