Interesting fix - the only drawback is that it will hide your message for all pages (sometimes the message might be relevant, I believe). I can make life quite a lot easier for you if you want to hide this for all pages. In a subsequent release very soon I am going to be switching full-scale to the WP PHP function post_class for all pages. When I do that, pages will have a class "page" associated with them - currently they have the class "post" associated. Then this will be a simple CSS include:
Code: Select all
.page #idc-container {
display: none;
visibility: hidden;
}
Of course, there is another way that your approach brings forth. Each page has a post id associated with it and that becomes the id of the HTML element, e.g. "post-113". So you could do this:
Code: Select all
#post-113 #idc-container {
display: none;
visibility: hidden;
}
Now, if am to include your fix in my code and hide this element only for pages where you have excluded comments, I can add this code to the file called custom-styles.php. I can loop through the pages you have excluded, then create the above CSS based on individual page ids.
Thanks for posting the fix - with the modifications I suggested I can make it a part of the standard code.