Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Register and deregister scripts and stylesheets.
- */
- function theme_setup() {
- wp_deregister_script( 'jquery' ); // Deregister the jquery version bundled with wordpress
- wp_register_script( 'jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js', array(), '2.2.4' );
- wp_register_script( 'jquerydateformat', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-dateFormat/1.0/jquery.dateFormat.min.js', array('jquery'), '2.2.4' );
- wp_register_script( 'app', get_template_directory_uri() . '/js/app.js', array('jquery'), '1.0' );
- wp_enqueue_script( array(
- 'jquery',
- 'jquerydateformat',
- 'app'
- ) );
- wp_register_style( 'fontawesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', '4.4.0' );
- wp_register_style( 'fonts', 'https://fonts.googleapis.com/css?family=Oswald|Open+Sans:400,400italic,700,700italic' );
- wp_register_style( 'app', get_stylesheet_directory_uri() . '/css/app.css', '1.0' );
- wp_enqueue_style( array(
- 'fonts',
- 'fontawesome',
- 'app',
- ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement