Archived topic
How to remove the date and author name from sticky post on blog
7 replies · Started by Kay on April 8, 2016
Hi Tom,
I'm trying to remove the date and my author name from the sticky post on my blog (http://kjhutchings.com/blog/) but want to keep the dates/author name on my other posts. Can't work out how to do this but suspect it's something to do with the index file? Could you help a non-techie please?
Many thanks
Kay
Hi Kay,
Your best bet is probably this little piece of CSS:
.sticky .entry-meta {
display: none;
}
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Let me know if you need more info :)
Worked a treat! Thank you so much!
Kay
You're welcome :)
Hi again Tom!
I noticed today (2 May) that the date and author name has reappeared on my sticky post. Not sure why, I've not changed any code (maybe WP updating itself?). Anyway, I re-added the CSS code to my "style.unmin.css" here:
/* =Content
----------------------------------------------- */
.sticky .entry-meta {
display: none;
}
.hentry {
margin: 0 0 2em;
}
.posted-on .updated {
display: none;
}
.byline {
display: inline;
but it's still not working. Any advice please? Thanks, Kay
Instead of changing core files which are replaced during updates, add CSS using this plugin: https://wordpress.org/plugins/simple-css/
It worked perfectly - many thanks! :-)
You're welcome :)
