Created
February 22, 2013 02:32
-
-
Save ericmann/5010291 to your computer and use it in GitHub Desktop.
Do as I saw, not as I do. Despite a comment explicitly stating that `wp_head()` should be the last item in the page's `<head>` section, there are scripts and styles declared in-line below it. Including an outdated version of jQuery shipped with the theme itself. This makes it impossible to use `wp_enqueue_scripts()` to add any jQuery extensions …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* header.php | |
*/ | |
?><!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<!-- meta tags and such omitted for brevity --> | |
<?php | |
/* Always have wp_head() just before the closing </head> | |
* tag of your theme, or you will break many plugins, which | |
* generally use this hook to add elements to <head> such | |
* as styles, scripts, and meta tags. | |
*/ | |
wp_head(); | |
?> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> | |
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> | |
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.6.min.js"></script> | |
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.fancybox-1.3.4.js"></script> | |
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/site.js"></script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment