Removing date from posts. Code not working. :(

  • Author
    Posts
  • #868637

    rebeccaearp
    Member

    Hello,

    I have been trying to remove the date display from my posts in Triton Lite.

    I have tried the following codes but none are making any difference in preview.
    Can anyone help?

    .post-category {
    display:none;
    }
    
    .post-date {
    display:none;
    }
    
    .entry-meta {
    display:none;
    }

    Thank you.

    Rebecca.

    The blog I need help with is rebeccaearp.wordpress.com.

    #868813

    jtanna01
    Member

    Have you tried this?

    time.entry-date {
    	display: none;
    }

    Good luck.

    #869050

    Thanks jtanna01! .entry-date should work. To remove the date from the posts on the home page as well, add this:

    .date-meta {
        display: none;
    }
    #869102

    tanyablanck
    Member

    I have tried all of these codes as well and cannot remove the date posted or “category” from my home page. http://thedancefusionstudio.com

    #869103

    @tanyablanck, a lot of CSS is theme specific. This thread is about the Triton Lite, and the http://thedancefusionstudio.com/ blog is using the Greyzed theme.

    I checked your blog and I found that you hid the date posted and category on your home page using this CSS:

    small {
    	display:none;
    }

    Note that will affect any text added using the “small” tag. To make it a little more specific and to try to prevent hiding some text you didn’t want to hide, try this instead:

    .posttitle small {
    	display:none;
    }

    In the future, could you please start a separate thread for questions about separate themes? It helps to keep the forums organized and easier to search in the future.

    #869104

    tanyablanck
    Member

    sorry for posting in the wrong place. I find searching the forums to be very confusing and got excited that someone was asking the same question that I had. How can I quickly find posts about CSS on the theme that my site is using? Greyzed Thanks for all of your help today!

    #869105

    No worries!

    CSS for different themes is different, so there’s no guarantee advice in one thread will work for you if it’s based on a different theme (a good thing to know when searching). Following are the three main ways I use to search. If you can’t find the answer you’re looking for, start a new thread.

    1. Using forum tags: https://en.forums.wordpress.com/tags/greyzed

    2. The built in forum search: https://en.forums.wordpress.com/search.php?q=greyzed+comment+bubble (you may need to scroll to the Relevant Topics section)

    3. Google: https://www.google.com/search?q=en.forums.wordpress.com+greyzed+comment+bubble

    Cheers :)

    #869106

    tanyablanck
    Member

    thank you. That’s helpful. :)

The topic ‘Removing date from posts. Code not working. :(’ is closed to new replies.