Hi,
1st things 1st, new version of Newspaper is awesome! 😀 I really like it a lot so far, thank you for the upgrade and your great work.
In this version, if SHOW DATE option is off in the theme panel, the date never gets printed at all. Before, the date would get printed but hidden afterwards. Is it better this way? I prefer to print the date and hide it, I believe that it helps SEO to print it but I also read that search engines don’t like a page that hides (via css) too much things from users. So in the end, is this just a personal choice? [this is just a thought not an issue submission, I already customize it to my needs] Also, the function seems a bit “redundant” as it sets something to be hidden if printed but it never prints it anyway. This is no problem at all, just my OCD kicking in 😀
But I do have an issue: I never hide the dates, except for one custom post type. And for that custom post type I want to hide the date only when viewing the post it self, the dates should keep showing elsewhere like blocks and sliders. So I have something like this:
if (td_util::get_option('tds_p_show_date') == 'hide' || is_singular('custom-post-type') ) {
$visibility_class = ' td-visibility-hidden';
}
It partially works, the blocks in homepage show the dates and when I click and go to the post itself, the date is hidden. The problem is when viewing the custom post itself, if its side bar contains a block with more posts of that type, the dates get hidden there too in the block.
How can I hide the date only under the title but get them to appear in the sidebar widget block?
This issue is not important nor urgent so I don’t mind waiting for help/answer if you have urgent or more important things to do. It might not even be possible to do what I want without changing too much the current mekanism of hiding the date, and in that case it’s not worth it to waste time thinking of a solution for something that is mainly aesthetic.
Thanks! Cheers!
Hi,
The old function was just hiding the date, we received requests from users to make it disappear when it’s disabled. The old function looked like this – http://screencast.com/t/Ll7OIC4L – we added a new condition – http://screencast.com/t/Hg8gLAzE
The date function is used on all blocks and post pages, it’s normal for the date on blocks/modules to disappear when your are on that specific custom post. An alternative would be to duplicate this function, for example name it get_date_two() and replace it on all module files or on single templates. This way you will have get_date() on modules and get_date_two() on post templates and you can control each are more easily. – http://screencast.com/t/66vdh2uiW – http://screencast.com/t/hGw3hkKxmOo
Thank you!
-
This reply was modified 11 years by
Emil G.