-
AuthorPosts
-
November 21, 2015 at 3:08 pm #540168
Hello,
to remove time (not date) in sidebar widgets “Enfold Latest News” and “Enfold Latest Portfolio” I tried the following code in Quick CSS:
#portfoliobox-3 .news-time { display: none; }
and
#portfoliobox-4 .news-time { display: none; }
and in functions.php:
function custom_widget_time($time_format, $location) { $time_format = get_option('date_format'); return $time_format; } add_filter('avia_widget_time', 'custom_widget_time');
It removes the time, but it shows a warning as well: Warning: Missing argument 2 for custom_widget_time() in /home/www/examplepage/wp-content/themes/enfold/functions.php on line 522.
Cannot reproduce, do you have any idea?
Cheers
SophieNovember 23, 2015 at 8:02 am #540544Hi Sophie,
I couldn’t see any error messages like that when logging in to your sites backend, where do you see it?
Thanks,
RikardNovember 23, 2015 at 10:37 am #540603Hey Rikard,
this is because I removed/disabled the code from Quick CSS and functions.php since I had to provide my customer a first insight into his website. I hoped you could help without the code ;-) . Do you want me to add/enable the code to Quick CSS and in functions.php again?
Cheers
LeUPNovember 24, 2015 at 6:44 am #541340Hi,
Isn’t hiding it with CSS enough? And yes, we would need to see the code/error message.
Regards,
RikardNovember 24, 2015 at 10:03 pm #541960Hey Rikard,
no, it isn’t enough hiding with CSS only. Would be great if you could have a look at the error message. Login details attached. Thank you in advance.
Cheers
LeUPNovember 27, 2015 at 11:23 am #543551Hey!
Please turn off debugging mode by referring to this post – https://codex.wordpress.org/WP_DEBUG
Regards,
YigitNovember 27, 2015 at 8:20 pm #543806Dear Yigit,
thanks for your reply. The debugging mode is already turned off!!
Please see the attached private message showing up the wp.config.php file.Do you have any solution for this error?
Thank you and best regards
LeUPNovember 29, 2015 at 7:09 am #544070Hi,
Where are you seeing this error message? I can’t see any error messages at all in the back- or front-end of your site?
Best regards,
RikardNovember 29, 2015 at 11:35 am #544122Hello Rikard,
thank you for your reply.
I send you via private message the some links where you can see the error on right sidebar of each site.
Please have a look and tell what to do.Thank you and brgds.
LeUP
November 30, 2015 at 1:33 pm #544455Hi!
I changed the code to following one
function custom_widget_time($time_format) { $time_format = get_option('date_format'); return $time_format; } add_filter('avia_widget_time', 'custom_widget_time');
Please review your website now
Regards,
YigitNovember 30, 2015 at 2:02 pm #544475That’s awesome! Thank you, Yigit!
Regards
LeUPNovember 30, 2015 at 2:08 pm #544477 -
AuthorPosts
- The topic ‘Remove time (not date) in sidebar widgets („Enfold Latest News/Portfolio“)’ is closed to new replies.