- This topic has 11 replies, 2 voices, and was last updated 2 years, 11 months ago by
David.
-
AuthorPosts
-
August 19, 2018 at 11:01 pm #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;
}GP Premium 1.7.1August 20, 2018 at 5:57 am #654222David
StaffCustomer SupportHi there,
Dates are not displayed for Pages in WordPress by default. It would require a custom function to do this. Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 20, 2018 at 6:19 am #654246Vijaykumar
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?August 20, 2018 at 6:35 am #654260David
StaffCustomer SupportThis topic should help:
https://generatepress.com/forums/topic/show-last-modified-date-on-pages-only/#post-622695
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 20, 2018 at 9:53 am #654632Vijaykumar
Hey thanks!
This is working perfectly.August 20, 2018 at 10:07 am #654648David
StaffCustomer SupportGlad to be of help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 1, 2019 at 9:50 pm #917419Vijaykumar
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.
June 2, 2019 at 4:04 am #917552David
StaffCustomer SupportYou 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 2, 2019 at 10:39 pm #918147Vijaykumar
Used this but its not looking good on other pages. E.g
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?
June 3, 2019 at 2:33 am #918266David
StaffCustomer SupportYou 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; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 3, 2019 at 8:35 pm #919086Vijaykumar
Thanks! That is working!
June 4, 2019 at 2:27 am #919270David
StaffCustomer SupportGlad to be of help
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.