Getting rid of new comments count

Sep 04, 2009 02:55

LJ has added the comment count to the direct view of an entry before the Post a new comment link, and I'd like to get rid of it.

Image under the cut )

comments, solved, paid accounts

Leave a comment

Comments 18

godofwine September 4 2009, 01:27:35 UTC
In your theme layer, add:

function EntryPage::print_body()
{
$this->print_entry($.entry);

if ($.entry->viewer_sees_ebox()) {
"""
""";
$.entry->print_ebox();
"""

""";
}

if ($.multiform_on and $.entry.comments.enabled and $.comment_pages.total_subitems > 0)
{
$this->print_multiform_start();
}

var string comments_count = string($.entry.comments.count);
if ($.viewing_thread) {
var string toplink = (($.comment_pages.total > 1) ? ($.comment_pages->url_of($.comment_pages.current)) : $.entry.permalink_url) + "#comments";
$comments_count = """ """+ get_plural_phrase($.entry.comments.count, "text_read_all_comments") +""" } else ( ... )

Reply

darciana September 4 2009, 01:38:52 UTC
I added it to my layer, but now all my comments are centered and the Post a new comment link is gone entirely. I just wanted to get rid of the comment count.

Reply

anjak_j September 4 2009, 01:40:00 UTC
You're missing a closing brace... =)

I tried this and noticed it fulfils my desire to remove the whole line of text, which is awesome. Any way to implement it so that it only removes it at the top of the page and not at the bottom please? It's handy to have the text at the bottom to save having to scroll back up to hit 'comment'.

Reply

godofwine September 4 2009, 02:10:13 UTC
Thanks for pointing this out! Somehow, I forgot to copy the whole code. Fail! I added the whole thing below, try that. :)

Reply


Not an answer... anjak_j September 4 2009, 01:31:11 UTC
I like this new feature on the standard LJ pages but yeah, I just noticed it on my journal and I was like...ugh. I actually find that entire item of text redundant since the 'reply' link is also there too.

If anyone answers, I wonder if they could expand on how to get rid of it completely, or even just a way to hide it. Just knowing the CSS to make it the same colour as my background would be fine by me.

Reply


Leave a comment

Up