Enque script in theme (frontend)

function generator_enqueue()
{
wp_enqueue_style(‘bootstrap’,get_template_directory_uri().’/css/bootstrap.css’,array(),”,”);
wp_enqueue_style(‘style’,get_stylesheet_uri(),array(),”,”);

wp_enqueue_script(‘bootstrapjs’,get_template_directory_uri().’/js/bootstrap.js’,array(‘jquery’));
}
add_action(‘wp_enqueue_scripts’, ‘generator_enqueue’);

Advertisements

Tagged:

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

%d bloggers like this: