-
AuthorPosts
-
October 17, 2022 at 5:01 pm #1369143
Hi there!
Is there any possibility of removing the time of the blogs but keeping the date?
Thanks in advance
ArantzaOctober 18, 2022 at 5:51 pm #1369263This reply has been marked as private.October 18, 2022 at 7:32 pm #1369281Hi,
Thanks for your patience, I assume that you are referring to the Latest News & Latest Portfolio widgets:
Try adding this code to the end of your functions.php file in Appearance ▸ Editor:add_filter('avia_widget_time', 'change_avia_date_format', 10, 2); function change_avia_date_format($date, $function) { $output = get_option('date_format'); return $output; }
Best regards,
MikeOctober 18, 2022 at 7:51 pm #1369284Thank you, but it doesn’t work :(
October 19, 2022 at 3:36 am #1369312Hi asociacionespanolaaustria,
Please add this CSS code in Enfold > General Styling > Quick CSS:
#top .news-time { display: none; }
If that does not help, please give us a link so we can check it.
Best regards,
NikkoOctober 19, 2022 at 6:17 am #1369328Hi, Nikko!
Thank you, but it doesn’t work. This deletes both date and time, and I want to keep the date.
Best regards
ArantzaOctober 19, 2022 at 6:56 am #1369333Hi Arantza,
Thanks for giving us admin access.
I have removed the code I have given in Quick CSS and have installed and activated this plugin: WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager then added Mike’s code and saved it (named it: Remove Time from Enfold Latest News Widget) and it worked well.
I have also removed this code in your Quick CSS:/* link logo para idiomas diferentes */ add_filter(‘avf_logo’,’av_change_logo’); function av_change_logo($logo) { $lang = pll_current_language(‘locale’); switch ($lang) { case 'de_AT': $logo = “/wp-content/uploads/2022/07/Aespa-Logo_ES.png”; break; case 'es_ES': $logo = “/wp-content/uploads/2022/10/Aespa-Logo_DE.png”; break; } return $logo; }
This code will not run since it’s not CSS and may cause unintentional behavior.
Best regards,
NikkoOctober 19, 2022 at 8:38 am #1369348Awesome! Thank you very much :)
ArantzaOctober 19, 2022 at 9:53 am #1369355Hi,
Great, I’m glad that we could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardOctober 19, 2022 at 10:08 am #1369363You can close!
Thank youOctober 19, 2022 at 11:31 am #1369371Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Remove time from Sidebar-Blog’ is closed to new replies.