[Resolved] Adding updated as of recent date on All posts ?

Home Forums Support [Resolved] Adding updated as of recent date on All posts ?

Home Forums Support Adding updated as of recent date on All posts ?

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #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
    Aziz

    #928684
    Leo
    Staff
    Customer Support

    Hi 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 ๐Ÿ™‚

    #929089
    aziz

    HI Leo ,

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

    #929235
    David
    Staff
    Customer Support

    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

    #929374
    aziz

    HI David and Leo ,

    This is solved, thanks very much.

    Aziz

    #929732
    Leo
    Staff
    Customer Support

    Glad we could help ๐Ÿ™‚

    #1003939
    aziz

    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

    #1004084
    Leo
    Staff
    Customer Support

    That’s because your code is wrapped with desktop media query:
    https://www.screencast.com/t/0fk0fblwRofK

    #1004710
    aziz

    Hi Leo, thanks for explaining

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

    Aziz

    #1004712
    David
    Staff
    Customer Support

    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

    #1004730
    aziz

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

    #1004892
    Leo
    Staff
    Customer Support

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

    Hi Leo ,

    thanks for the help.

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

    Aziz

    #1005975
    Leo
    Staff
    Customer Support
    #1005992
    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

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.