Hide "comments are closed", but NOT disable comments
-
This question has been asked before… But this is different from other questions however.
1.) I know how to disable comments
#comments p {
display:none;
}2.) How do you hide “comments are closed”, but do NOT disable the comments?
3.) Sorry, it’s not my site. It’s a friend’s site and no, I will not leave a link.
4.) Yes, it is a wordpress.com site
5.) Yes, I do have custom CSS
-
CSS editing at wordpress.com is theme specific. Which theme are you working with? The Volunteer helping needs to know that as the URL has not been provided.
-
At the very least we need to know what theme is being used, otherwise I can give you 50 different selectors and still miss the right one.
-
I also need to know where you are talking about the text. Is it on the single-post pages, on static pages, on the main blog pages, where?
-
-
1.) Vostok and Twenty Ten shows the same problem: “Comments are closed” at the bottom of the page.
2.) It also comes up on all of the pages.
3.) However, when using the code–> #comments p {display:none;}
it permanently disable comments on all pages. I don’t want it to disable comments, I only want to get rid of “comments are closed.” If it can be done where you could possibly use a color code, perhaps, to hide the “comments are closed”, that would be great. At least if I could do that, I could have the comment box open for people to comment. On Vostok, I was able to get rid of the unnecessary footer and change the colors, and what not on the page. I don’t know if there is a section in the CSS for “Comments are closed” where I could just simply change its color without changing the page to blend in with that color. -
For Vostok on the single post page:
.nocomments { display: none; }If you want to remove the “comments off” on the blog main page, then make it like this instead:
.nocomments .comments-link { display: none; }With comments off on twenty ten, I see no “comments are closed” on the posts or pages.
-
When I changed themes from Vostok to Twenty Ten. I used the same css. Seeing that you say that there are no “comments are closed” in twenty ten (which I believe because I used it for my site), then there must be something in the css that is displaying it, perhaps for my friends’ site?
-
CSS is theme specific. Each theme designer decides how they are going to organize the markup (XHTML) and how they are going to organize and label the CSS. You can’t use the Vostok CSS with twenty ten. If there are some similarly named selectors, it will end up totally screwing things up.
I turned comments off on my test blog, both individually on a post, and then turned them off from settings > discussion and make a new post, and it does not show “comments off” on the single post or individual pages in twenty ten.
-
Actually, there is a .nocomments in twenty ten, but the theme itself is hiding that when comments are turned off for a page or a post instead of displaying it. It is not being turned off by the theme in Vostok though.
I don’t know about the twenty ten theme for self-hosted blogs though, on the off chance you are talking about 2010 on a self-hosted blog. The themes have some differences between here and there.
- The topic ‘Hide "comments are closed", but NOT disable comments’ is closed to new replies.