-
AuthorPosts
-
October 9, 2014 at 9:26 am #122261
Hi !!
My client want to change the date format.
Is it possible to change my date format from mm/dd/yyyy to dd/mm/yyyy in news page ?
Thank you !!
Christophe D.October 9, 2014 at 9:26 am #122263This reply has been marked as private.October 9, 2014 at 12:01 pm #122407You can change the date format by going to the date options under Settings -> General
/wp-admin/options-general.php
and change the format to what you need.
I hope this helps.
October 10, 2014 at 3:23 am #122820This reply has been marked as private.October 10, 2014 at 10:03 am #123067Hi Chris,
To be able to change it. You’ll need to set up a child theme first
http://theme.co/x/member/kb/how-to-setup-child-themes/
Then add the code below in child theme’s functions.php
if ( ! function_exists( 'x_icon_entry_meta' ) ) : function x_icon_entry_meta() { $date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>', esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date( 'd.m.Y' ) ) ); if ( x_does_not_need_entry_meta() ) { return; } else { printf( '<p class="p-meta">%s</p>', $date ); } } endif;
-
AuthorPosts