Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
new file for custom js
Browse files Browse the repository at this point in the history
removing the script to put it in the wpfolio.js
and caliing it in functions.php
  • Loading branch information
eduplessis committed Nov 8, 2010
1 parent a810556 commit d705601
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 0 additions & 11 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]>
Expand Down
3 changes: 3 additions & 0 deletions js/wpfolio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jQuery(document).ready(function($) {
$('ul.sf-menu').superfish();
});

0 comments on commit d705601

Please sign in to comment.