Date Format in MO

February 2014 WordPress Theme
GK User
Tue Apr 22, 2014 2:51 pm
Hi,

I testing MO theme in my own blog at http://www.carlosrovira.com

As it's a wordpress spanish install (es_ES), I translated all theme (.mo, ,.po) file but dates are nos translated.

For example latest post shows "22nd ABR" instead the date format I set up in general admin page.

What's the way to get something more spanish friendly like "22 de Abril, 2014" or "22/05/20014", ....

thanks

Carlos
User avatar
Senior Boarder

GK User
Wed Apr 23, 2014 7:28 am
Hello,

In this case (MO) we set the date format in the php files (because of structure of the post - date with black background).
You can change this format in Mo/layouts/content.post.header.php file:

Code: Select all
<?php echo esc_html(get_the_date('jS')); ?>   
   <span><?php echo esc_html(get_the_date('M')); ?></span>
User avatar
Moderator

GK User
Wed Apr 23, 2014 9:49 am
Hi Piotr,

thanks for your response and solution. I have a problem implementing it.

I tried to use my child theme and created a "layouts" folder. Then copied the file "content.post.header.php" changing some things, but the theme is not showing that changes.

Are this files changeable in child theme or are the child theme feature defeated?

thanks!
User avatar
Senior Boarder

GK User
Wed Apr 23, 2014 10:13 am
Hi,

Yes, it should works properly this way. Could you send me a PM with backend and FTP access? Then i'll try to check it exactly.
User avatar
Moderator

GK User
Wed Apr 23, 2014 10:21 am
Hi Piotr,

it's working now, it was a problem with some translation cache engine. Thanks! :)
User avatar
Senior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.