Site logo

Archived topic

Adding updated as of recent date on All posts ?

15 replies · Started by aziz on June 13, 2019

Viewing posts 1–15 of 16

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
Aziz

HI Leo ,

Thanks, any other way aside from installing an additional plugin( Simple CSS )

Hi 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

HI David and Leo ,

This is solved, thanks very much.

Aziz

Glad we could help :)

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/p3deaz

thanks in advance
Aziz

Hi Leo, thanks for explaining

how can I fix it then so it will reflect in the mobile. thanks

Aziz

You 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

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: ";
}

Edit 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: ";
}

Hi Leo ,

thanks for the help.

I'm still fighting to get it reflected in the SERP

Aziz

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

This archived topic is closed to new replies.