- This topic has 15 replies, 3 voices, and was last updated 3 years, 8 months ago by
Leo.
-
AuthorPosts
-
June 13, 2019 at 10:40 am #928676
aziz
Hi ,
Please assit what is the code for updated as of recent date on All posts ? .
currently i have it in original dates.
please advise also when to flag that code .
( first time to use GP )
thanks
AzizJune 13, 2019 at 10:47 am #928684Leo
StaffCustomer SupportHi there,
Take a look at this article:
https://docs.generatepress.com/article/show-the-updated-post-date/Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps ๐
June 13, 2019 at 10:00 pm #929089aziz
HI Leo ,
Thanks, any other way aside from installing an additional plugin( Simple CSS )
June 14, 2019 at 1:43 am #929235David
StaffCustomer SupportHi there,
CSS can be added to the Customizer > Additional CSS, thats built into WP core. Alternative is to add them to a child theme style.css
June 14, 2019 at 5:02 am #929374aziz
HI David and Leo ,
This is solved, thanks very much.
Aziz
June 14, 2019 at 8:46 am #929732Leo
StaffCustomer SupportGlad we could help ๐
September 8, 2019 at 6:41 am #1003939aziz
HI Leo and David
connection to above, I just paid attention that ”last updated date ” working only for desktop and doest work for mobile :
for your info for same post :
Mobile : https://prnt.sc/p3devo
DEsktop: https://prnt.sc/p3deazthanks in advance
AzizSeptember 8, 2019 at 8:03 am #1004084Leo
StaffCustomer SupportThat’s because your code is wrapped with desktop media query:
https://www.screencast.com/t/0fk0fblwRofKSeptember 9, 2019 at 6:36 am #1004710aziz
Hi Leo, thanks for explaining
how can I fix it then so it will reflect in the mobile. thanks
Aziz
September 9, 2019 at 6:39 am #1004712David
StaffCustomer SupportYou have CSS that starts with a media query – looks like this:
@media (min-width:769px){ /* styles here */ }
This includes the:
.posted-on .updated { display: inline-block }
Cut this piece of code and paste it outside of the media query
September 9, 2019 at 7:04 am #1004730aziz
HI David ,
thanks for the follow up.
Just confirming the code please, this is the one :
@media (min-width: 769px) {
.post-image-aligned-left .post-image img {
max-width: 300px;
}
.posted-on .updated {
display: inline-block;
}
.posted-on .published {
display: none;
}
.posted-on .updated:before {
content: “Last updated: “;
}September 9, 2019 at 8:34 am #1004892Leo
StaffCustomer SupportEdit it to this:
@media (min-width: 769px) { .post-image-aligned-left .post-image img { max-width: 300px; } } .posted-on .updated { display: inline-block; } .posted-on .published { display: none; } .posted-on .updated:before { content: "Last updated: "; }
September 10, 2019 at 9:27 am #1005955aziz
Hi Leo ,
thanks for the help.
I’m still fighting to get it reflected in the SERP
Aziz
September 10, 2019 at 9:38 am #1005975Leo
StaffCustomer SupportIs this what you are looking for?
https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-dateSeptember 10, 2019 at 9:47 am #1005992aziz
HI Leo
I think so, yes , need google to index the updated dated and show in the SERP
Or I can remove the date from the SERP at all.
thanks again
Aziz -
AuthorPosts
- You must be logged in to reply to this topic.