Suppress Post Date (Edin)
-
I am ready to cry. Or scream. Or something.
I would like to remove the post date from all posts on my site. I have done a ton of Googling and the best I’ve found is:
.post .entry-meta { display: none; }Trouble is, it also removes author.
I tried.post-date { display: none; }and it didn’t do anything.
I’m currently using Edin theme, but may change. It seems this might be theme-specific because I added the first batch of code to my other WP site B-Spoke, and it didn’t do a darn thing (it’s on Gazette theme).
Thanks!
The blog I need help with is: (visible only to logged in users)
-
Hi.
I looked at your rjbkmoadventures.com site, and I do not see any dates on your posts. So it looks like you were able to figure that one out?
On your B-Spoke site (Gazette theme), the theme code is a little different. Try this one to remove the date from the posts on that site:
time.entry-date.published { display: none; } -
Right. The code works – but it also removes the author name. I was hoping to remove the date and leave the author?
I actually don’t WANT to remove the date from B-Spoke, but I was experimenting – which led to the discovery that different themes require different code.
The reason why THAT’S important to me is, I don’t know that I’m married to Edin for the Adventures site…
For giggles, I tried the code you sent me for Gazette on Edin, and got:
“POSTED ON BY RJBINNEY”. So it stripped the DATE but not the text. (Which I guess is why it’s different, coz on Gazette it just lists the date not the “Posted On”.) DAMN this is confusing me. -
I’m sorry for the confusion and misunderstanding of your question!
Yes, it can be a bit confusing because each theme is different and requires different code to edit the CSS. So, if you change themes, you’ll need to figure out which CSS selector to use each time.
To remove just the date on Edin, give this a try:
span.posted-on { display: none; }You’ll also want to make sure you remove the following from your CSS editor so that the author name will re-appear.
.post .entry-meta { display: none; }and
.byline, .updated { display: none; }Let me know if that works for you.
-
Great – that worked perfectly.
I didn’t need to remove the “.byline” bit – that wasn’t in my stylesheet, and as soon as I put in your “span.posted-on” command, it showed the author.
In the meantime, I figured out how to activate “Manual Excerpt” whilst Googling for a solution for this issue – which resolved something HUGE that had been bothering me. So, if nothing else, that’s a big win for me!
-
Hi there, for the date, I see you have used the Content Options in the Customizer to hide the date on your posts. Is there anything else you need help with on these issues?
-
Thanks, yeah. It was acting up sporadically, hence the goal of fixing it for good in CSS. Thanks
-
- The topic ‘Suppress Post Date (Edin)’ is closed to new replies.