Claudio Soto Medel
asked 4 years ago

I need to change the date language of some widgets, but I do not know can i do that, Can anybody help me on this?

<iframe src="https://onedrive.live.com/embed?cid=7B105F181A4D6083&resid=7B105F181A4D6083%2137527&authkey=AJGi6QeP6ld-yvc" width="320" height="171" frameborder="0" scrolling="no"></iframe>
1 Answers
DominicStaff
answered 4 years ago

Hi,
If you want to translate the date, you can do as the following:
Open the functions.php file in the folder path wp-content\themes\dw-focus.
Find the line 340.
Replace the following code:return date( get_option( 'date_format' ), $from );
With new code: return date_i18n( get_option( 'date_format' ), $from );
Hope this help!

claudioesteban.soto
replied 4 years ago

Thank you Dominic

claudioesteban.soto
replied 4 years ago

Hi, and thanks for your answer, was perfectly useful. Now I would also ask how I can change the word "All" shown in the attached image.![enter image description here](https://pavukq.by3301.livefilestore.com/y3pUCgX_nToR993myqlBRkWE3yRgQpEndgV3jAVtuAklM32zv1yHNOps4mz0pQXwRyvujfF9mfh_FdpJhHnHL76KZViK26xZYP00x7hKGI0x_d-UkJ3ztqnMpoGlBwE3yoIN2Zp8fyW8IP1SwInoYr4i0SvLat5e1BOZIFw-pDp2jc/Sin%20t%C3%ADtulo.png?psid=1 "enter image title here")

dominic Staff
replied 4 years ago

You can change the word "All" in the some following php file:

 #: inc/widgets/dw-focus-categories.php: line 177
 #: inc/widgets/dw-focus-categories.php line 201
 #: inc/widgets/dw-focus-categories.php line 209

Hope this helps !

Powered by DW Question & Answer Pro