Need help? Check out our Support site, then


Remove date from post

  1. 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

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

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

  4. @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;
    }
  5. Thanks so much for your help.

  6. You are welcome.

  7. 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.

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

  9. 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.

  10. @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;
    }
  11. 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.

  12. 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).

  13. 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;
    }
  14. 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?

  15. 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.

  16. You are welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic