wp_enqueue_script does not work

Based on your description that you “created a front-page.php and added the following” and also that there is markup in that file, you are hooking too late. You should be both registering and enqueueing on wp_enqueue_scripts but that isn’t the problem here. The problem is that by the time you try to hook, the hooks … Read more

What to do when theme and WordPress coding standards conflict?

This is a very subjective question — though a very good and interesting one, and I’ll try to provide my personal view on this. In general, you should always try to adhere to the WordPress Coding Standards. The only exception to this is when you’re changing existing code. Basically, when you’re editing an existing “product” … Read more