Site logo

Archived topic

Not showing Updated Date on PAGES

11 replies · Started by Vijaykumar on August 19, 2018

Viewing posts 1–12 of 12

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

Hi there,

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

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?

Hey thanks!
This is working perfectly.

Glad to be of help!

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.
https://imgur.com/a/AKvb9Md

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.

Used this but its not looking good on other pages. E.g
https://imgur.com/a/CLXmFOH

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?

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

Thanks! That is working!

Glad to be of help

This archived topic is closed to new replies.