Add CSS And JS In Function

/* Load CSS */
function theme_styles() {
wp_enqueue_style( ‘bootstrap’, get_template_directory_uri() . ‘/css/bootstrap.min.css’, array());
}
add_action( ‘wp_enqueue_scripts’, ‘theme_styles’ );
/* Load Jquery Files */
function theme_scripts() {
wp_enqueue_script( ‘jquery’);
wp_enqueue_script( ‘bootstrap’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array(), ”, true);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_scripts’ );

Advertisements

Published by

oudarya

I am a developer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s