How can I hide the date of Pages (not posts) which I display in the sidebar widget?
Hi,
this option works fine across posts and pages (date is hidden).
However, we want to hide the date only for pages (not for posts).
The reason being is that pages are mostly evergreen content and it may look outdated even if it’s still very much relevant.
Whereas posts should highlight the date as publishing date shows freshness of content.
Please advise how to hide the date meta in widgets/sidebars only for pages and keep it for posts.
Thanks!
Hello,
The option above removes the date from pages exclusively. It will not remove it from post. Make sure this option is active: https://www.screencast.com/t/5wegsttaYZq5
Thanks.
Hi, I am not referring to the date on the pages or post.
The discussion I am trying to make here is about the date in the sidebar widget not the date on single posts or pages.
We want the date of posts to show in the block 7 sidebar widget but to hide the date if the block 7 sidebar widget displays (filtered) pages.
Please see the screenshot: https://www.screencast.com/t/69QMC7s85
Hi,
So you want the date to be shown/hidden depending on what the block is filtered to display. That is not possible by a theme setting or even a modification I would know about. The block module will still be the same regardless of what is displayed in it, there would be no connection between the module and the post/page it shows.
Hi,
ok, so a possible work around could be that in a future update in the “Block Settings” you allow show/hide date in “meta info on modules/blocks” > 1. Show Date for Posts (already there) 2. Show Date for Pages (not there, would be nice to have).
I don’t know how difficult this is to implement from a coding perspective, but it would be nice to have this function in a future update.
Thanks
I was looking for the option to hide the date in a block on my page. But why is the settings on the Theme Options page? This disables it everywhere. This should be an option on the specific block when generating it on a page.
For Example it should then generate per block:
[td_block_14 installed_post_types=”postnames” limit=”5″ sort=”alphabetical_order” ajax_pagination=”” showdate=”false”]
Hi,
@mmedia This has not been implemented in the theme up to this moment. There would be other priorities at the moment. But it is noted and will be considered at a future time.
So if you want to remove the date for a specific block for the moment you would have to resort to some CSS
– https://www.screencast.com/t/RUnybZHRTg
– https://www.screencast.com/t/ctoYzhosCx7
Example code used here
.my_special_block .td-post-date,
.my_special_block .td-post-author-name span {
display: none;
}
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
Thanks
We have to be careful with the new options that we add in the composer. If there is a request mentioned or suggested by many users it will be strongly considered. It will also be considered if it will be very helpful and over bulk the composer. So this option may be available at some point in the future. Sorry for any inconvenience.
Hi sonno,
The “Block” element is an old element in our theme, this is since we started to build our theme, now for more flexibility we added some new elements and our developers made the flex block and flex grid.
Thank you for your understating!