Profile photo of Albert BurrullAlbert Burrull
asked 1 year ago

I have changed in Settings > General the date format because I need 25/12/2016 (d/m/Y).

But no change in my web. The theme always show as F j, Y

Is there any problem?

4 Answers
Dominic
answered 1 year ago

To resolve this issue, you can open the inctemplate-tags.php and find the line 114 to line 154.
If you want to change the date format in the widget, you can open the files:

\inc\widgets\dw-focus-news-grid.php line 117
\inc\widgets\dw-focus-news-list.php line 117
\inc\widgets\dw-focus-news-slider.php line 99
\inc\widgets\dw-focus-news-ticker.php line 84
Profile photo of Albert BurrullAlbert Burrull
answered 1 year ago

I think it’s a very bad option to modify all your code. It has no sense!

The best option is that you change the code and use the WordPress function get_option( ‘date_format’).

Thanks!

Dominic
replied 1 year ago

Thank you for interesting in our product and your feedback. We appreciate it. I know this option is very hard to edit and not save after update the theme if you do not use child theme.
I sent and notified our technical team about this problem. We will check and update it in the next option.

Profile photo of JeffJeff
answered 1 year ago

I also think this is a really bad solution… We do use a child theme, but still weren’t able to make the changes in the widgets without changing parent theme files.

For the template-tags.php, we have just redeclared the "dw_focus_entry_meta" -Function in

functions.php, but what about the widgets? How can we change the date format without modifying template files (as you have used: "require get_template_directory() . ‘/inc/widgets/dw-focus-news-grid.php’;" to implement the widgets)?

Dominic
answered 1 year ago

I know what you want and your feel while facing this issue. Currently, you can not edit this file in the child theme.

To resolve this issue, you can edit from the parent theme. Don’t worry, we will update the theme and fix this issue, we will release as soon as possible.

Powered by DW Question & Answer Pro

Access years of experience in WordPress; Collaborate with professionals trusted by tens of thousands of people across the world.

Sign Up Today