-
AuthorPosts
-
March 19, 2014 at 6:38 pm #240231
How can I remove the post dates displayed under the post titles when using a ‘Child Latest News’ widget?
Also, I am using Enfold child as the active theme. Is there a way to make this change so it doesn’t need to be redone every time the parent theme is updated?Thanks,
Keith Martin
http://www.LocalCrew.tvMarch 21, 2014 at 11:06 am #241094Hi KCMartin91737!
If you want to remove the date from the widget insert following code into your child theme functions.php:
function change_avia_date_format($date, $function) { return false; } add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
Cheers!
PeterMarch 21, 2014 at 6:41 pm #241322Peter,
Thanks for the quick response. Unfortunately, when a add that code to the child theme’s functions.php file (themes/enfold-child/functions.php) the website loads as a blank page. When I remove the code, the site/theme loads correctly again. This is repeatable. Any suggestions on how to resolve the issue would be much appreciated.
I added the code to the functions.php file after the following lines:
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/Keith
March 22, 2014 at 1:31 am #241457Hey!
You can add this on the child theme’s style.css:
.news-time { display: none !important; }
Best regards,
IsmaelMarch 22, 2014 at 2:07 am #241476March 22, 2014 at 2:08 am #241478March 25, 2014 at 9:05 am #242578Hi!
Please create me an ftp account and post the login credentials as private reply. I’ll add the code I posted here: https://kriesi.at/support/topic/remove-dates-displayed-in-child-latest-news-widget/#post-241094 to your functions.php file. I know that it works because I also use it on my website without problems.
Best regards,
PeterMarch 26, 2014 at 8:20 pm #243507Peter,
Thanks for the offer to do it for me but it occurred to me my security plugins were likely blocking the functions.php code change. The dates are now gone from the widget but the time is still being displayed. Tried to add a similar line to remove the time as well but haven’t gotten it right yet. What code do I add to remove the time as well?
Thanks again,
KeithMarch 26, 2014 at 8:23 pm #243508Disregard my last message. I got it working now. Thanks again for all the help.
Keith
-
AuthorPosts
- The topic ‘Remove dates displayed in 'Child Latest News' widget?’ is closed to new replies.