Community Forums › Forums › Archived Forums › Design Tips and Tricks › Modern Studio Pro – Changing date format
Tagged: date format, Modern Studio Pro
- This topic has 7 replies, 3 voices, and was last updated 7 years, 5 months ago by
pixelpushers.
-
AuthorPosts
-
April 8, 2016 at 3:50 am #183156
pixelpushers
MemberHi,
I 'm building a site at the moment using Modern Studio Pro
At the top of the posts the date always appears in the month-day-year format (ie today would be 04.08.2016)
I'm British and we never format dates like this (we always use day-month-year)
Can anyone tell me how to change this so it would read as either 8th April 2016 or 08.04.2016? It must be a theme setting as when I try and change the date format in general wordpress settings it remains the same.
Also if any StudioPress staff read this it would be great if you coded the themes so these defaults weren't just for an American audience!
Thanks
Gill
http://local onlyApril 8, 2016 at 9:55 am #183176carasmo
ParticipantThat's not a StudioPress setting it's WordPress. Go to your http://yoursite.com/wp-admin/options-general.php and choose the date format. You can use php date code in the field to adjust it even more than the default options.
http://php.net/manual/en/function.date.php
April 8, 2016 at 9:58 am #183177carasmo
ParticipantAlso change the language to English UK (very bottom of the page).
April 8, 2016 at 10:34 am #183180pixelpushers
MemberThanks but as I said already it doesn't appear to be that WordPress setting - I had already tried changing the date format in General settings and WordPress language is already the English UK version. None of this makes any difference so I can only conclude it has to be a Studio Press setting. When I use other Studio Press themes I don't get this problem however, only this theme - can anyone else help please?
April 8, 2016 at 12:16 pm #183181carasmo
ParticipantThis is the community forum, your issue may be a bug or you may have to clear your cache or go through your plugins to see if there is a conflict. I usually develop with debug on and when there is something that appears like a bug that I've never seen before, I switch to 2016 theme and if it's still there, then it's a plugin. Get help from SP directly: http://my.studiopress.com/help/
April 9, 2016 at 3:44 am #183202pixelpushers
MemberThanks - I have tried clearing the cache (no joy) - I have also tried a completely clean installation of the theme without plugins and the issue is still the same. I will do as you suggest and contact SP support.
April 9, 2016 at 4:41 am #183204Victor Font
ModeratorModern Studio Pro has this code in its functions.php:
//* Customize the entry meta in the entry header add_filter( 'genesis_post_info', 'ms_entry_meta_header' ); function ms_entry_meta_header( $post_info ) { $post_info = '[post_date format="m.d.Y"] <span class="by">by</span> [post_author_posts_link] // [post_comments] [post_edit]'; return $post_info; }
Change it to:
//* Customize the entry meta in the entry header add_filter( 'genesis_post_info', 'ms_entry_meta_header' ); function ms_entry_meta_header( $post_info ) { $post_info = '[post_date format="d.m.Y"] <span class="by">by</span> [post_author_posts_link] // [post_comments] [post_edit]'; return $post_info; }
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 12, 2016 at 8:21 am #183443pixelpushers
MemberThanks very much Victor - I just got the same info from StudioPress support too so the issue is resolved. Do find it rather odd that they would set this so the standard WordPress method of changing the date format no longer works - seems a bit of a backward step. Anyway, thanks for your help.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.