Tag Archives: Javascript

Using wp_enqueue_script and wp_enqueue_style with your WordPress Theme header

For the longest time I was including my Javascript files in WordPress with a simple Javascript statement in the header.php file. I’d reference the theme directory like this to make it portable. <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/jquery.js”></script> <script type=”text/javascript” src=”<?php … Continue reading

Posted in Code, General | Tagged , , | Leave a comment

JSON, jQuery, and Google APIs

Due to my development process I have found myself using JSON more often than before. It is the best way to transmit data between domains using Javascript. I have been using JSON calls in jQuery to fetch information from the … Continue reading

Posted in General | Tagged , , , , | Leave a comment