Hide "comments are closed" on Clean Theme
-
Ok, I know this has been asked many times before, but I just cannot seem to hide “comments are closed” at the bottom of some of my pages.
I have tried:.commentsblock {
display:none;
}But still not working.
Thanks.
http://edosbornphotography.com/The blog I need help with is: (visible only to logged in users)
-
-
-
Thanks again. The only problem with this is that it it removes comments from all pages. Is there a way to have it so I can still have comments on some pages, or is it all or nothing?
-
You would have to specifically target individual pages by ID in the CSS, such as below, for the pages you wish to have no comments.
.page-id-524 #comments p { display:none; }Note that the above approach won’t necessarily work on all themes, but will work with the theme you are using.
-
-
Just one more thing (for now), is there a way of hiding the post title on the post page, but not the home page. It’s clashing with the “next post” arrows.
-
This will hide it.
.single-post .hentry h1 { display: none; }This will put more space between the previous and next navigation and the title and let it drift back over to the left where it belongs, if you wish.
.single-post .hentry h1 { margin-top: 30px; } -
-
- The topic ‘Hide "comments are closed" on Clean Theme’ is closed to new replies.