- This topic has 9 replies, 2 voices, and was last updated 1 year, 8 months ago by
Elvin.
-
AuthorPosts
-
October 21, 2020 at 3:13 pm #1499021
Andrew
I think there’s a bug in the latest GP release. I have this code in Simple CSS:
.posted-on .updated {
display: inline-block;
}.posted-on .updated + .entry-date {
display: none;
}.posted-on .updated:before {
content: “Last Updated “;
}It has been working fine until the latest update. Now however, the date shows in the Customizer but not when the site’s live.
Any ideas?
October 21, 2020 at 3:52 pm #1499046Elvin
StaffCustomer SupportHi,
Can you try disabling all caching plugins and check if it still occurs?
Let us know how it goes. Thanks.
A wise man once said:
"Have you cleared your cache?"October 22, 2020 at 1:40 pm #1500491Andrew
Hi Elvin,
After disabling the Autoptimize plugin, the date shows again.
Any ideas on how to solve this issue, with the Autoptimize plugin active?
October 22, 2020 at 2:45 pm #1500522Elvin
StaffCustomer SupportStrange,
I don’t see the dates on your site on my end.
Here’s what I’m seeing on my end. https://share.getcloudapp.com/E0urylwn
Can you tried clearing your browser cache too? You can try viewing your site in Incognito mode.
A wise man once said:
"Have you cleared your cache?"October 22, 2020 at 4:06 pm #1500567Andrew
Hi Elvin,
Sorry, I should have explained it better. I disabled Autoptimize, checked the site and it showed the date. Then I enabled Autoptimize again. So when you looked at it, Autoptimize was enabled.
Can I force the date to be always shown, ie override Autoptimize for the date display function?
October 22, 2020 at 4:20 pm #1500573Elvin
StaffCustomer SupportSorry, I should have explained it better. I disabled Autoptimize, checked the site and it showed the date. Then I enabled Autoptimize again. So when you looked at it, Autoptimize was enabled.
Ah that makes sense.
If that’s the case then you really must clear Autoptimize’s current cache so that Autoptimize can rebuild the cache again w/ your newer CSS settings.
Can I force the date to be always shown, ie override Autoptimize for the date display function?
Sure. Perhaps you’ve followed this already: https://docs.generatepress.com/article/show-the-updated-post-date/
If so, you’ll just have to clear cache after applying this.
Note: It’s helpful to clear cache every time you make changes to your site.
A wise man once said:
"Have you cleared your cache?"October 22, 2020 at 6:25 pm #1500627Andrew
I cleared the Autoptimize cache, no change. Viewed website in Incognito mode, no change. Any other ideas?
Thanks for the link, but I already have this CSS on the site as per the screenshot of the Customizer in my first post (sent privately). I’m a bit confused, am I missing something?
October 22, 2020 at 6:39 pm #1500637Elvin
StaffCustomer SupportWe can try adding !important to the property.
Example:
.posted-on .updated { display: inline-block !important; }
A wise man once said:
"Have you cleared your cache?"October 22, 2020 at 9:23 pm #1500697Andrew
Problem solved, thanks Elvin!
October 22, 2020 at 9:35 pm #1500705Elvin
StaffCustomer SupportNice one.
No problem. 🙂
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.