Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created July 10, 2015 20:05
Show Gist options
  • Save codigoconjuan/fb60611e9d479b7c83ff to your computer and use it in GitHub Desktop.
Save codigoconjuan/fb60611e9d479b7c83ff to your computer and use it in GitHub Desktop.
function dinamarca_scripts() {
wp_enqueue_style( 'dinamarca-style', get_stylesheet_uri() );
wp_register_style('lightbox', get_template_directory_uri() . '/css/lightbox.css', array(), '1.0', 'all');
wp_enqueue_style('lightbox'); // Enqueue it!
wp_register_style('flexslider', get_template_directory_uri() . '/css/flexslider.css', array(), '1.0', 'all');
wp_enqueue_style('flexslider'); // Enqueue it!
wp_enqueue_script('jquery', get_template_directory_uri() . 'js/jquery-1.11.3.min.js');
wp_enqueue_script( 'dinamarca-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'dinamarca-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_script( 'slicknav', get_template_directory_uri() . '/js/jquery.slicknav.min.js', array('jquery'), '20130115', true );
wp_enqueue_script( 'lightbox', get_template_directory_uri() . '/js/lightbox.js', array('jquery'), '20150114', true );
wp_enqueue_script( 'flexsliderjs', get_template_directory_uri() . '/js/jquery.flexslider.js', array('jquery'), '20150114', true );
wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', array('jquery'), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'dinamarca_scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment