Archived topic
Single post meta customization
9 replies · Started by D on April 3, 2019
In customize > layout > blog > single, I have all of the content boxes checked, yet only name and date are showing at the top under title. How do I get other things to show?
For Archives, I unchecked all content except post title and featured image. The archive pages are affected by toggling boxes, but not single posts.
And how can I get last modified date to show next to published date? I tried following this https://docs.generatepress.com/article/show-the-updated-post-date/ but ended up breaking the site when using the header element.
The other meta items display under the post. It will be easier to move those up to the top of the post in GP 2.3.
That documentation article should work, just make sure you add the CSS using one of these methods: https://docs.generatepress.com/article/adding-css/
I am having trouble getting the last modified date to display. Can you help with this aspect?
I regenerated all thumbnails with Regenerate Thumbnails Advanced by ShortPixel and am using WP Last Modified Info by Sayan Datta.
Thanks!
Hi there,
add this CSS:
.posted-on .updated.updated {
display: inline;
}
.posted-on .published {
display: none;
}
That helped a little bit, thank you. But, I should have clarified more.
The end result I'm looking for is something like:
Published on: DATE - Last updated: DATE
Try this CSS instead:
.single-post .entry-meta .posted-on a {
display: inline-flex;
}
.single-post .posted-on .updated {
order: 2;
}
.single-post .posted-on .published,
.single-post .posted-on .updated {
display: inline;
}
.single-post .posted-on .updated:before {
content: '\00a0 Last updated: '
}
.single-post .posted-on .published:before {
content: ' Published on: ';
}
This is so close to working! I realized the customizer CSS editor is deleting CSS options which include selector codes and code with brackets like .navigation-search input[type="search"] - do you have a method which will allow me to save the css changes you suggested outside of the customizer?
You can try our Simple CSS plugin: https://wordpress.org/plugins/simple-css/
You can find other methods here: https://docs.generatepress.com/article/adding-css/
The Simple CSS plugin worked perfectly and the CSS you provided is exactly what I needed. Thanks :)
Glad we could help! :)