jQuery DatePicker defaults to Chinese

This one drove me up the wall. The days and months in the datePicker() kept coming back as Chinese. Turns out the issue stemmed from a new theme, Experon Pro. This is probably not the best way to fix this issue, but it’s fixed and allowing me to move on to new tasks.

edit: wp-content/themes/Experon_Pro/admin/meta/js/jquery.datePicker.min.js

screen-shot-2017-01-17-at-10-07-39-am

In lines 41 and 42, and your language of choice.

screen-shot-2017-01-17-at-10-08-01-am

If you know a better way, please share as I would enjoy learning more on how WordPress functions.

Another Day in WordPress

So, this was a fun one. For starters it wasn’t a hacked site, so I’ll be eternally grateful for this. What it was was a non-Wordpress/Wordpress site.

Yeah, it threw me as well.

For starters there are two sites; flat php files and a WP site in the /blog directory which is navigated to via a subdomain.  The front page was a mimic of the the WP theme, with SimplePie object gathering from an RSS feed of the WP site for a loop that shows blog posts within the blog.

Confused yet?

Now, I can certainly understand the front page being a flat file, or in this case a headless WP, the speed alone you gain for SEO and mobile is worth the effort.

However, and I know this is a small stretch, but I feel it is worth asking. Please, if you are working on a project like this, outside the normal paradigm of the application, please leave some notes. It doesn’t have to be much, but understand just because you built it doesn’t mean you will be maintaining it. Companies loose contract, people move on.

This is just a simple plea, because, in case you didn’t know, in time you will be on this side of the fence, and you’ll know exactly what I’m talking about.