Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

enqueue script should be used in WordPress for better version controls a... #12

Open
wants to merge 1 commit into from

1 participant

@PeteSchuster

...nd so the files are called in the proper order

Pete Schuster enqueue script should be used in WordPress for better version control…
…s and so the files are called in the proper order
f98b249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 8, 2012
  1. enqueue script should be used in WordPress for better version control…

    Pete Schuster authored
    …s and so the files are called in the proper order
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 header.php
View
4 header.php
@@ -15,10 +15,10 @@
<!-- enable HTML5 elements in IE7+8 -->
<!--[if lt IE 9]>
-<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+wp_enqueue_script( 'html5shim', 'http://html5shim.googlecode.com/svn/trunk/html5.js' );
<![endif]-->
-<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/less.js"></script>
+wp_enqueue_script( 'html5shim', get_template_directory_uri(). '/js/less.js' );
</head>
<body <?php body_class(); ?>>
Something went wrong with that request. Please try again.