[Resolved] Not showing Updated Date on PAGES

Home Forums Support [Resolved] Not showing Updated Date on PAGES

Home Forums Support Not showing Updated Date on PAGES

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #653943
    Vijaykumar

    As discussed with Leo, creating new ticket for showing the Updated date on PAGES.

    Issue: The Updated date is showing for single POST under post title. But this updated date is NOT shown for single PAGE under page title.

    The CSS code I have used:

    .posted-on .updated {
    display: inline-block;
    }

    .posted-on .updated + .entry-date {
    display: none;
    }

    #654222
    David
    Staff
    Customer Support

    Hi there,

    Dates are not displayed for Pages in WordPress by default. It would require a custom function to do this. Let me know.

    #654246
    Vijaykumar

    Hi David
    Oh didn’t know this but it was shown in my earlier theme. Showing Updated dates for PAGES is equally important from SEO perspective as well. Can you help with this function/hook?

    #654260
    David
    Staff
    Customer Support
    #654632
    Vijaykumar

    Hey thanks!
    This is working perfectly.

    #654648
    David
    Staff
    Customer Support

    Glad to be of help!

    #917419
    Vijaykumar

    Hi David
    This issue had been resolved but when I recently created a full-width page on my site the alignment of “Last Updated” date section is not proper.

    Is there a way to align it properly starting from the page title OR hide this all together on SOME pages?

    This is the screenshot of the example page I am talking about.

    View post on imgur.com

    #917552
    David
    Staff
    Customer Support

    You could centre the entry meta with this CSS:

    .entry-meta {
        text-align: center;
    }
    .entry-meta span {
        float: none !important;
    }

    Getting to align with the start of the title would not be easily achievable with CSS alone.

    #918147
    Vijaykumar

    Used this but its not looking good on other pages. E.g

    View post on imgur.com

    Is there any way to keep if left on all pages/posts except certain page? OR even hide it on the particular page by adding some page-specific css/code?

    #918266
    David
    Staff
    Customer Support

    You could use the page-id-XXXX body class to target a specific page. In the example page you have it would be this:

    .page-id-82827 .entry-meta {
        display: none;
    }
    #919086
    Vijaykumar

    Thanks! That is working!

    #919270
    David
    Staff
    Customer Support

    Glad to be of help

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