Whiting out comments

  • Author
    Posts
  • #59103

    laurafern
    Member

    Hi, I’m new around here, and to CSS — I am using the Treba theme, and have been playing around with editing a few things. I want to get rid of the footers on all the pages that say “comments are closed,” — this site isn’t really going to be for blogging purposes — and I turned them white (invisible) on the front page, but I can’t seem to make it happen on all the additional pages. Can anyone help me?

    #59300

    drmike
    Member

    Link to the blog in question please. We gotta tell you want to change by seeing it. :)

    #59319

    usually a simple

    #respond, #comments { display: none; }

    will work better than ‘whiting them out’

    #59321

    drmike
    Member

    Agreed. Wanted to make sure we were telling them the right classes though. :)

    #59322

    yeah, i’m totally guessing. it’s pretty rare to have something other than that, though, since the comment link on the front page depends on those ID’s

    #59403

    laurafern
    Member

    Oops, I didn’t reply all day.

    Can you tell I am a newbie to this by my thought that “whiting it out” would be better? =)

    It’s actually not my blog (laurafern.wordpress.com), it’s a friend’s new site for her personal chef business — very much in progress — at privatepalate.wordpress.com.

    Sunburnt — where generally do I insert that line you put there.

    I appreciate the help!

    #59462

    drmike
    Member

    *chuckle* This is why I always try to get a link so we can see. :)

    Follow sun’s instructions but the bit you want to block out is ‘nocomments’. Should be:

    #nocomments { display: none; }

    Hope this helps,
    -drmike

    #59472

    you’ll just want to insert drmike’s CSS at the end of the Edit CSS box

    actually, you may also want to add .commentblock:

    #nocomments, .commentblock {display: none;}
    #59480

    drmike
    Member

    I was looking at that as well but they just said that they wanted the text whited out. I didn’t know if it was used elsewhere or if they allowed comments on posts.

    #59496

    laurafern
    Member

    Thanks — I added those two lines:

    #nocomments, .commentblock {display: none;}

    #nocomments { display: none; }

    And it still shows “comments are closed” — what am I doing wrong? I just pasted them into the already slightly edited CSS… does it have to go in a certain place in the CSS?

    #59503

    drmike
    Member

    Wouldn’t it actually be #commentblock since it’s only used once? (Asking here as I don’t use the theme myself and hoping Sun speaks up)

    I’d go ahead and remove:

    #nocomments {
    display:none;
    }

    It doesn’t need to be in there twice. I don’t think it would affect anything. Just being picky.

    #59517

    laurafern
    Member

    Success! Thanks!

    #59518

    drmike
    Member

    Cool :)

    #59540

    well, it does occur only once, so they should have made it an ID, but in this case, they made it a class. ID’s are #, classes are .

    the CSS i posted was misspelled, it should be .commentSblock

    that’s why it didn’t work. sorry about that.

    #59541

    drmike
    Member

    ID’s are #, classes are .

    I’m glad you can keep that straight. I certainly can’t.

    #59618

    i can now. it confused me for years. now my brain’s been pretty much completely assimilated. i even have dreams in CSS.

The topic ‘Whiting out comments’ is closed to new replies.