Published Date HTML and Schema
-
Hi there,
I’ve been using the free version of Generatepress for a while now and love it. I’ve managed to do quite a lot of customising and fiddling with the CSS to get it almost perfect for me.
However I’ve encountered a problem I can’t seem to sort. I’ve seen it crop up as a question in various forms quite a bit though so I’m hoping there’s an easy solution.
I currently only show the “Last Updated” date on posts, and if there’s only the published date or it hasn’t been updated then no date is shown. I noticed that I’d done this with CSS to hide the published date but it was still present in the HTML along with the Schema.
So, is there a quick and easy function to remove that published date and Schema from the HTML? I only want the last updated/dateModified, nothing else.
That’s the main issue and I’ll be more than happy just to solve that. However if there were someone really clever they might be able to help me take it a step further:
If there was only the published date (I.e no update or modification had been done), could I show that but have it set as the modified date. So something like <time itemprop=”dateModified” datetime=”published date here”> but then if the post has been updated that updated date is used instead? I hope I’ve explained that clearly!
And lastly (sorry for all the questions) am I right in thinking the Premium version makes all I’m asking for super simple? Just a tick box option in the customising settings? If so then I’m considering switching which leads to my (I promise!) final question – is upgrading from the free to Premium straightforward? Would it likely mess up the changes and tweaks I’ve made to the free version?
Thanks and apologies for the length of this!
– Andy
The topic ‘Published Date HTML and Schema’ is closed to new replies.
