WordPress.org

Forums

remove date from a post (5 posts)

  1. nejtech
    Member
    Posted 2 years ago #

    Hi, I have added a content slider in a sticky post to my blog. I use the Yoko Theme. What I am having trouble with is removing the date, author and comments from the top of that post. You will see what I mean here.

    http://www.newdestinyarts.com/blog

    I have mainly tried reading the css file, and using firebug to see if I could identify what element I could switch off, but I don't think I am getting it. Please help.
    Thanks.

  2. Alain Lankers
    Member
    Posted 2 years ago #

    Did you try to add .entry-header p {display:none} to your style.css? Or remove the entry from your index.php

  3. nejtech
    Member
    Posted 2 years ago #

    I tried adding .entry-header p {display:none} to the css, but that removes headings and dates from many other posts, typically the ones formatted to show videos.

    I am trying to remove the date and author from the top post on the homepage only.

    Looking at index.php, I was not able to identify any entry that controls the date on posts.

    Thanks for the suggestion. Do you have any other ideas?

  4. you can make the style more specific, for example:

    .home .post-217 .entry-header p { display: none; }

    try working with a browser tool such as Firebug http://getfirebug.com/ to solve those fundamental formatting questions.

  5. nejtech
    Member
    Posted 2 years ago #

    Thanks sooo very much. That worked.

    Now to read the css and figure out what exactly I need to do in such cases, I will have to really study that. But this is a good example of how to go about it. You helped get me off the ground. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic