Here you go..
function xobamax_resources() {
wp_enqueue_style('bootstrap', get_template_directory_uri() . 'css/bootstrap.min.css');
wp_enqueue_style('style', get_stylesheet_uri());
wp_enqueue_script( 'bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js', array('jquery'), '3.3.4', true );
}
add_action('wp_enqueue_scripts', 'xobamax_resources');
I have added the CDN version, You can replace that with your local copy. I want to suggest you to read more about wp_enqueue_script()
Related Posts:
- Best way to include Bootstrap in WordPress
- Port existing Bootstrap site to WordPress?
- Using twitter bootstrap in a theme
- How to make wordpress theme option page in columns?
- How can I allow a client to edit certain parts of a static site?
- Convert theme to be based on Bootstrap?
- Is there a WordPress theme for twittstrap? [closed]
- Best Practice Jumbotron Image for WordPress ~ Responsive
- How to make a page extend full screen [closed]
- Override parent theme translation on child theme
- What does exactly GPL license mean for my WordPress theme?
- How to set thumbnail image for a (child) theme
- Categorising themes by folders in backend
- How to incorporate admin theme in my back-end-plugin
- Using chunk theme from wordpress.com on my own host
- What is the first file wordpress looks at in a theme?
- Duplicate and change a Theme Widget
- Custom Upload Panel in Menu Bar
- WordPress themes under GPL license
- Theme not showing after uploading
- get_template_directory_uri does not seem to work when defining WP_CONTENT_DIR
- Using a _GET gives me a debug error (over my head)
- Possible to put header-{your_custom_template}.php in subdirectory?
- Why wp_enqueue_style() not working?
- How to remove header image on subpages in Twenty Eleven (default theme)?
- Can I update themes without enabling maintenance mode?
- 404 Error while accessing the font files
- Child Style.css not overriding parent theme style located in assets/css/main.css
- Disable Theme API / Front end (for API only environment)
- Creating a theme options page
- Showing post thumbnail (attachment) on the archive.php category listing
- title, content, feature images
- OptimizePress Theme Overriding add_filter page_template
- Theme Check warning wrong direcory for theme
- Moving test theme to live site without mySQL error – how? [closed]
- Add more widget areas to a theme
- Posts and Pages not showing on admin, but showing in theme
- Apache errors when retrieving taxonomies
- How can I add class to every quote element?
- wp_get_theme() works fine, but wp_get_themes() returns empty array
- Read More Button Not Responding To Click
- How to use command lines an activate theme in wp – cli also setup Vagrant/Sage Theme?
- How to change the format of posts on the hompage?
- How to display message (with switch_theme hook) after deactivating My theme?
- GPL 2 Theme using a framework for commercial Theme?
- Putting two themes together to create a complete site
- How does WP generate html?
- How to deactivate the text, that appears, when you hovering over topbar tabs? [closed]
- WordPress root directory change + Theme directory change
- How to dynamically change theme’s slogan from admin?
- Using WordPress Multisite to manage multiple projects?
- What’s a good way to unenqueue all scripts for a single template page?
- Icons not showing [closed]
- How do I understand which page of my theme is being loaded?
- What Generated Classes and IDs That Is Always Used On All Themes?
- Creating a child-theme: CSS not loading
- WP HTML Templates – Any way to get bloginfo() or the path to the theme folder?
- Theme javascript/css 404
- The style.css stylesheet doesn’t contain a valid theme header. what should I do, please?
- How to override / customize existing Widgets?
- Changing URL of scripts, scripts outside theme folder?
- Download Themes From LocalHost WordPress Site [closed]
- Access to font not allowed by CORS Policy
- How to use only scripts from new theme?
- Understanding wp_enqueue_style
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Send data to Editor before saving the post
- Trim Post Content on Home Page
- Does Jetpack store comments in local database also? [closed]
- WordPress Theme Breaking on Migration to Live Site [closed]
- Looking for a theme to show unread/updated posts since last visit or like that
- Twenty Eleven NOT valid
- Query for all themes?
- First click to blog title does not open the blog article
- Why does an ad page open when I browse my websites’s wp-admin page?
- Get the name WordPress default theme in the core
- Trying to revive an old wordpress site, but newer versions of wordpress install a different db structure
- WordPress fails to embed video URL on specific theme
- How to add extra custom social icons to page with same style?
- Theme translation not working
- How to change allowed attachment files extensions
- Custom homepage with recent blog posts
- Transfer WordPress site to another domain
- Why Underscores Theme Comment Form Reversed?
- Featured images are cropped on index and post page
- Firebug and Chrome rendering two body tags
- Change theme’s thumbnail to cropped WP featured image
- Does WordPress provide themes_api function?
- How to show tags in posts with a theme that does not do it
- How can i limit wordpress post title characters in sidebar?
- is it possible to create a website with wordpress with these requirements without coading?
- Theme making direct ajax calls to theme folder
- How to add sidebar to homepage programmatically?
- How to remove header “ish” label [closed]
- I need to disable responsive feature of a theme called Meet GavernWP [closed]
- how to add dynamic footer credit in Greatmag theme [closed]
- Twenty Fifteen Premium Theme [closed]
- Can i Remove copyright text wordpress.org theme
- Remove image next to header image on WellExpo theme [closed]
- Table of Contents in Left Navbar [closed]