You can add bootstrap in WordPress by following function in functions.php
You can change url as you need if you have cdn.
<?php
/**
* Enqueue scripts and styles
*/
function your_theme_enqueue_scripts() {
// all styles
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), 20141119 );
wp_enqueue_style( 'theme-style', get_stylesheet_directory_uri() . '/css/style.css', array(), 20141119 );
// all scripts
wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20120206', true );
wp_enqueue_script( 'theme-script', get_template_directory_uri() . '/js/scripts.js', array('jquery'), '20120206', true );
}
add_action( 'wp_enqueue_scripts', 'your_theme_enqueue_scripts' );
Related Posts:
- Port existing Bootstrap site to WordPress?
- Loading Bootstrap with wp_enqueue_style and wp_enqueue_script
- 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]
- Can wordpress theme folder name be changed freely and nothing technically happens
- How to change the language for the front-end only?
- Any official way to create an admin theme?
- Looking for a way to load a function after customizer preview refresh complete
- Moving WordPress.com theme and widget settings to self-hosted site?
- Getting headers property from WP_Theme object
- How to set a unique WordPress theme for different pages?
- Why is there no global function in wordpress to return the output of any function call?
- Visually change theme via query string?
- What does the term “bundled-theme” mean?
- Which theme template is used renders next page
- Getting rid of unused css directives [closed]
- Exclude file from theme editor
- Child theme does not appear in theme selection
- How to stop a 500 error on the WordPress theme folder
- Making an IE only site (Like a Mobile only site)
- How do I move the page title (H1) to header.php (outside of the loop) in a WordPress theme?
- Find proper “text domain” within theme
- Does theme update also update a child theme zip
- Investigating complex themes still slow even with WP caching
- What are the things that will be affected in case there is some wordpress updates or theme updates?
- setting a different theme for specific category in wordpress
- Color palet in the WordPress’ front-end?
- How do you approach block structured content?
- WP_bootstrap_Navwalker_issue [closed]
- Child Theme not overriding a template section on live site – but is on local site
- Online theme customizer missing details
- need to aply a different style sheet for a specific page template
- WordPress themes incomplete installation or installation problem
- Problem of running development copy of WordPress on WebMatrix?
- Switching content between summer and winter
- How does WordPress load themes? It doesn’t see mine (symlinked)
- Buddypress User Settings template location? [closed]
- How to code static pages in WordPress
- How can I manually activate my previous theme without browser access to dashboard?
- Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders
- Can “Classic Editor” plugin help to replicate the old website / theme development experience from c. 2011?
- Creating custom meta box throws PHP warning error in WordPress
- What is the point of needing add_theme_support( ‘html5’) in WordPress 5.x
- Plugin and themes are adding the same stylesheets
- How to display footer menus in wordpress
- Color Options from Theme Customizer API not returning via get_theme_mod()
- How do I manually revert back to my old theme?
- Modifying the markup in the Tag Cloud widget?
- Debugging in WordPress at Theme installation [duplicate]
- understanding theme hierarchy
- wp_enqueue_style $dep argument does nothing?
- Posts as filtered list – expandable
- Adding Bootstrap to WordPress TwentySixteen Theme
- Is it a good practice to disable wpautop for premium themes?
- How to remove current theme customizations
- How to use custom page templates in a theme that hides page template option?
- Why in this WordPress theme I can’t see the Main Menu?
- Create QuickStart Package for WordPress just like in Joomla
- How to include stylesheet in custom admin using parent_slug
- After installing a free theme, my wordpress turns into text mode when accessing remotely
- Jquery Theme Roller to WordPress
- Implementation of language_attributes function
- why is this script not working on my site
- is theme network enabled?
- Pharmacare theme login page / login modal redirection to custom URL
- theme installation not working
- wordpress-theme 2017: featured image behaviour: where to set the height of the featured image?
- Changing a parent theme safely
- Trying to create a child theme with plugin
- How exactly does WordPress load themes from api.wordpress.org?
- Own Theme custom CSS does not display in editor but works in page
- Remove Read More Buttons
- Theme-based character encoding issue
- Linkedin not returning right info
- how to load rtl.css file before style.css [duplicate]
- CSS/JS is not working in multi lang installation
- Error while downloading WordPress themes
- Theme stops media uploader from working
- div having different appearances in different themes
- Create a live demo gallery for themes
- Satoshi WordPress Theme – Portfolio SetUp Issues
- How to make a website like the ones in theme demos? [closed]
- How to create an Single-Portfolio page?
- Page structure using The Customizer Api
- theme 2016 – customize css – nothing happens
- Can’t upload the theme
- Divi theme including javascript
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- Installing themes from an external website [closed]
- Should you directly edit Template Parts and Templates from themes?
- Remove ALL HTML from single page
- Absolute and relative paths
- Get header/footer list for a theme
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- How to remove pop up on website (css changes not visible)?