Remove date from post

  • Author
    Posts
  • #1449966

    nwolitzer
    Member

    I am helping a friend set up her blog: manhattanlinear.com

    She would like to set up a post but remove the date. the theme she has used is Greyzed. Is this possible?

    Thank you very much

    #1450166

    timethief
    Member

    Yes and this thread will be moved to the CSS Forum where the required help can be found.

    #1450232

    nwolitzer
    Member

    Thanks for moving my query to the correct forum. I look forward to receiving some advice.

    #1450307

    @nwolitzer, the following will remove the date from below the title on posts, but will keep the categories and adds a “Posted in: ” before the category names.

    .posttitle small {
        visibility: hidden;
    }
    
    .posttitle small a {
        visibility: visible;
        float: left;
    }
    
    .posttitle small:before {
        content: "Posted in: ";
        visibility: visible;
        float: left;
    }

    If you wish to hide the categories from below the title also, then use this instead.

    .posttitle small {
    display: none;
    }
    #1450325

    nwolitzer
    Member

    Thanks so much for your help.

    #1450332

    You are welcome.

    #1450339

    nwolitzer
    Member

    I have run into a little trouble trying to do what you describe above.The home page for manhattanlinear.com is currently set up as a page, not a post. I want to be able to add categories and tags to it. Since it is my understanding that pages cannot be tagged I have decided to change the home page to a Post. This is my only reason for changing it from a Page to a Post. I now have a draft Post ready to be added. As you instructed, I copied this part (to get rid of the date only, not the categories):
    .posttitle small {
    visibility: hidden;
    }

    .posttitle small a {
    visibility: visible;
    float: left;
    }

    .posttitle small:before {
    content: “Posted in: “;
    visibility: visible;
    float: left;
    }
    This was done by going into APPEARANCE, CUSTOMIZE, CSS.
    I removed the comments there (as instructed on that page) and pasted in what is above.
    I then went back to my DRAFT posts and said preview, hoping to see it again this time in preview without the date and knowing it was okay to go ahead and use the POST.
    But instead I got the error message: ERROR 404 PAGE NOT FOUND. I tried it with a second saved post and got the same error message.
    Previously, before I copied in the info above into the CSS customize window, if I clicked on Preview I saw an actual preview of my post with the date.
    I just went in and deleted the changes I made to eliminate the date. Once I signed out and signed in again, I could again see a preview.
    Can you please tell me what I did wrong here in trying to eliminate the date?

    Thanks again for your help.

    #1450344

    raincoaster
    Member

    You cannot add tags and categories to a Page, period.

    #1450348

    nwolitzer
    Member

    Yes, I realize that and that is the reason I attempted to replace the page with a post. I just don’t want the date to show on the post.

    #1450359

    @nwolitzer, the CSS change will not be reflected in the preview unless the CSS change is saved. Did you save it?

    I double checked the above code in my test blog and it works to remove the date from the post meta data in Greyzed. I would suggest using the following code, which has a couple of modifications from my original to make things look better if there are multiple categories assigned to a post.

    .posttitle small {
        visibility: hidden;
    }
    
    .posttitle small a {
        visibility: visible;
        float: left;
    }
    
    .posttitle small:before {
        content: "Posted in: ";
        visibility: visible;
        float: left;
    	padding-right: 3px;
    }
    
    .posttitle small a:after {
    	content: ", ";
    	padding-right: 3px;
    }
    #1450376

    nwolitzer
    Member

    Thanks again. Yes, the changes were saved. But I couldn’t see if the changes were there because I could not get to the preview.

    #1450379

    lyndacc
    Member

    Thank you very much. Nancy was helping me with my site (Manhattan Linear).

    I was able to preview it now using your suggested css code and it works fine–eliminates the date.

    I just have one more question: Is there any way to move all the tags and categories to the bottom–or eliminate them from showing–so they are not right at the top of the post? I’d like the post to just start with the text and images I have and not with the tags and categories (although I’d like to have tags, but just not right at the top).

    #1450386

    To remove the date, categories and tags from above the posts all together, you would remove the existing CSS I provided and add this instead:

    .posttitle small {
    display: none;
    }

    To have the date hidden and move the categories and tags to the bottom of the posts, you would replace the existing CSS I provided with the following. Depending on the number of tags and categories you assign to each post, the bottom margins values may need to be adjusted.

    .home .posttitle small {
    	visibility: hidden;
    	position: absolute;
    	bottom: 0;
    	margin-bottom: 20px;
    }
    
    .single .posttitle small {
    	visibility: hidden;
    	position: absolute;
    	bottom: 140px;
    	margin-bottom: 20px;
    }
    
    .post {
    	position: relative;
    }
    
    #jp-post-flair {
        margin-bottom: 30px;
    }
    
    .column .entry {
    	padding-bottom: 60px;
    }
    
    .posttitle small a {
    	visibility: visible;
    	float: left;
    }
    
    .posttitle small:before {
    	content: "Posted in: ";
    	visibility: visible;
    	float: left;
    	padding-right: 3px;
    }
    
    .posttitle small a:after {
    	content: ", ";
    	padding-right: 3px;
    }
    #1450388

    lyndacc
    Member

    Thank you for being so helpful! I just tried it and it works great! Just what I wanted. I really appreciate all the help you have given me. Thank you.

    If you can take one more question: I notice that the last item still has a comma after it even though there is nothing that follows (both in categories and in tags). Any way to get rid of those ending commas?

    #1450389

    lyndacc
    Member

    Actually, never mind about the commas. As that post is meant as a table of contents, with links to only pages, none of the categories or tags actually link to anything (as I can’t have tags/categories on pages).

    So I just used your first suggestion. I will have to forego tags and categories. Much appreciate all your help. Thank you.

    #1450394

    You are welcome.

The topic ‘Remove date from post’ is closed to new replies.