_s: Simple script for changing the classes of the main menu based on browser width let's you easily restyle a menu for small screens without changing the markup

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8868 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-02-06 16:40:54 +00:00
parent e1f35edffb
commit 4f3d984c7c
3 changed files with 46 additions and 1 deletions

View file

@ -99,4 +99,13 @@ function _s_widgets_init() {
'after_title' => '</h1>',
) );
}
add_action( 'init', '_s_widgets_init' );
add_action( 'init', '_s_widgets_init' );
/**
* Enqueue scripts
*/
function _s_scripts() {
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '20120206', true );
}
add_action( 'wp_enqueue_scripts', '_s_scripts' );