How Do I Remove The Date From All Sticky Posts?

  • Author
    Posts
  • #877198

    juliawilde
    Member

    I am using the Autofocus Theme – have tried repurposing some of the suggestions people have posted for other themes in my CSS editor, but I am not getting anywhere. I’d just like to get rid of the dates on the sticky posts only. Thanks so much!!

    Jules

    The blog I need help with is juliawilde.com.

    #877675

    I checked http://juliawilde.com/ and I don’t see dates on any of the sticky posts there. If you still need help, please post a link to where we can see the problem happening.

    #877676

    juliawilde
    Member

    Hi there, The dates are in the actual post itself – http://juliawilde.com/2012/02/19/40/

    Thanks!!

    #877677

    Ah, okay. Sticky posts only are differentiated when they appear in lists, like the home page, but there is not a way to style sticky posts separately for individual posts like that.

    Also, the individual posts display a date heading on the right followed by the post date and time as well as category links.

    You could remove just the heading part, but note that it would affect all posts not just sticky ones:

    .entry-date {
    	display: none;
    }

    Or you could remove all of the post meta completely like this:

    #entry-content {
    	width: 800px;
    }
    #entry-meta {
    	display: none;
    }

    Add one example or the other to your Appearance → Custom Design → CSS page and click the preview button to try them out.

    #877678

    “Sticky post” is only a class relative on the main page of the site. Once you go to http://juliawilde.com/2012/02/19/40/ , then you are viewing what is called a “single-post” and you can hide the date display, but it will hide the date display for ALL posts when viewing a single-post.

    .entry-date {
    display: none;
    }
    #877679

    G’day @designsimply. I should have refreshed.

    #877680

    Hi!! You’re post is awesome; I was trying to think of a good way to explain sticky posts and single posts and yours does it.

    #877681

    juliawilde
    Member

    you guys are fully rocking my world right now – thank you so much. @thesacredpath, thank you for such a concise explanation and @designsimply, thank you for preempting my next OCD moment with info on removing all post meta. done! woo!

    #877682

    That was part of the reason it took me so long to post. I had to think about how to explain it – and break up a cat fight outside. It seems word has gotten out in the local feral cat community that I’m a soft touch and will always put out food. Now if only I can get them all to get along.

    #877683

    You are welcome from me.

    #877684

    juliawilde
    Member

    you know the feral cat community: chatty cathys.

    #877685

    Heh, I like that. Chatty cathys.

The topic ‘How Do I Remove The Date From All Sticky Posts?’ is closed to new replies.