Permalink
Browse files

new file for custom js

removing the script to put it in the wpfolio.js
and caliing it in functions.php
  • Loading branch information...
1 parent a810556 commit d7056012bdd159300a0a5acda55046e19696b308 @eduplessis eduplessis committed Nov 8, 2010
Showing with 5 additions and 11 deletions.
  1. +2 −0 functions.php
  2. +0 −11 header.php
  3. +3 −0 js/wpfolio.js
View
@@ -61,6 +61,8 @@ function wpfolio_remove_gallery_css( $css ) {
wp_enqueue_script('hoverIntent', get_bloginfo('template_directory').'/js/hoverIntent.js',array('jquery'));
wp_enqueue_script('superfish', get_bloginfo('template_directory').'/js/superfish.js',array('hoverIntent'));
wp_enqueue_script('supersubs', get_bloginfo('template_directory').'/js/supersubs.js',array('superfish'));
+wp_enqueue_script('wpfolio', get_bloginfo('template_directory').'/js/wpfolio.js',array('supersubs'));
+
// enable threaded comments
View
@@ -24,21 +24,10 @@
<!-- Superfish Support -->
-
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/superfish.css" type="text/css" media="screen"/>
-
<!--
Add if you want to enable the SuperFish Navbar. It will need styling!
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/superfish-navbar.css" type="text/css" media="screen"/> -->
-
-<script type="text/javascript">
-/* <![CDATA[ */
-jQuery(document).ready(function($) {
-$('ul.sf-menu').superfish();
-});
-/* ]]> */
-</script>
-
<!-- end superfish -->
<!--[if IE]>
View
@@ -0,0 +1,3 @@
+jQuery(document).ready(function($) {
+ $('ul.sf-menu').superfish();
+});

0 comments on commit d705601

Please sign in to comment.