You can use action hook and enqueue script and style to the site.
function my_scripts() {
wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css');
wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ),'',true );
wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array( 'jquery' ),'',true );
wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array( 'jquery' ),'',true );
}
add_action( 'wp_enqueue_scripts', 'my_scripts' );
If you want to add the scripts after jQuery then you can use the jQuery array for dependent and last argument true will include the JS at footer, if you want the js in header, you can remove that.
Related Posts:
- Bootstrap js refuses to load
- How do I enqueue a js file in functions.php for a if lt IE 9 statement? [duplicate]
- Check for Twitter Bootstrap Loaded
- How do I dequeue a parent theme’s CSS file?
- Check if a script/style was enqueued/registered
- wp enqueue style on specific page templates
- Is it possible to use wp_localize_script to create global JS variables without a specific script handle?
- Prevent Version URL Parameter (?ver=X.X.X) on Enqueued Styles & Scripts
- How can I enqueue protocol relative external (//ajax.googleapis.com/…) scripts?
- Can’t enqueue scripts in the footer?
- How can I remove the site URL from enqueued scripts and styles?
- Loading a script with a dependency, is unloading another script’s dependency
- wp enqueue script using scripts from cdn with a safety callback
- Can I add styles to footer with $wp_styles->add_data?
- Enqueue script in specific page
- jquery script not enqueued in child theme
- Get the list of enqueued/registered scripts for a specific post?
- Add script to footer – on post editor
- Which action to hook wp_enqueue_script to? wp_head or wp_enqueue_scripts? [duplicate]
- enqueue and localize script in footer
- What determines the order of enqueued styles?
- Wp_head and wp_footer vs wp_enqueue_script javascript files?
- How to use wp_enqueue_style() and wp_enqueue_script() only when needed?
- Is this a bad implementation of wp_enqueue_script for conditional usage?
- Preload key requests using wp_enqueue
- Don’t load scripts if on mobile/tablet
- How to Add a Custom Script to Customize.php
- Child Theme – what is the scope of overwriting files?
- Enqueue scripts to footer
- Add last modified time as version to css and js
- Enqueue script on specific WooCommerce template
- Best spot for wp_register_script() and wp_register_style()
- Custom Plugin Development: What priority should wp_enqueue_scripts have?
- Select2 in WordPress
- Register script/style: Is it possible to customize the version query string via plugin?
- Asset loading with gulp.js or Grunt
- Enqueue AWS Script
- How can I make sure my JS script gets executed first, among other scripts?
- Dequeuing scripts for all pages but the home page
- Optimizing WordPress’s styles and scripts
- Which jQueryUI handles are predefined in wordpress?
- How to enqueue a style using wp_enqueue_scripts()?
- getting a js file for one page
- How do you enqueue a Visual Basic script using wp_enqueue_script?
- enqueue admin styling and scripts only on plugin page
- How to change script order?
- Enqueue script multiple times?
- Can’t see why my scripts aren’t loading when I register and enqueue them
- jquery-ui-autocomplete is not loaded with wp_enqueue_script
- WordPress script file version numbers changing in live environment
- Enqueueing a script and a style sheet not working
- How to add parameter to wp_enqueue_script?
- Is It Possible to add JS AFTER the Enqueue within the same Function?
- How can I manually enqueue plugin scripts
- How can I properly enqueue wp-hooks without issues?
- wp_dequeue_style and wp_dequeue_script not working on server but does work on local xampp
- wp enqueue, how to prevent duplication when same script is registered with different handles
- Localizing script to pass a value to a javascript function
- get_template_directory_uri not dependent on WP_HOME in wp-config.php?
- get_template_directory_uri() gives me wrong path when I try to use wp_enqueue_style
- Dequeue script conditonnally
- why quotes shown in WordPress?
- Overwrite wp_enqueue_script under certain condition
- Help to enqueue a js functions ( jquery) [closed]
- Conditionally load script depending on current admin page
- Enqueue script inside IE conditional comments
- How can I integrate Fancybox 3 in WordPress properly
- How to enqueue default scripts with dependency?
- Enqueuing a script before anything else
- Should I use get_bloginfo(‘stylesheet_directory’) or get_stylesheet_directory_uri() when enqueueing my js files?
- How to load API’s in WordPress?
- How to use wp_enqueue_script, style when required
- Adding Pinterest Script Before Closing Body Tag
- how to enqueu customiser/customizer scripts?
- How Do I Enqueue a Script into 2 different Footers on the Same Site?
- how to load css and js based on post template
- link to JS library using wp_enqueue_scripts not working
- Using wp_enqueue_script on scripts that contain PHP
- Enqueue specific script on account creation (and never again)
- Proper enqueue for child theme functions.php
- loading javascript CDN with local fallback (not jQuery)
- How do I pass $in_foooter to wp_enqueue_script() without passing other params?
- Dynamic wp_enqueue_scripts?
- Why do I have to specify all parameters for wp_enqueue_script to load my jquery in the footer? [closed]
- Load scripts only for selected template
- Bootstrap and jQuery error: $ is not defined
- Bootstrap slider not working
- wp_enqueue_script error with `ID`, `post_title`, `post_name` of none object
- How to enqueue a script on a specific URL that contains multiple parts
- Enqueue Script only over specific WordPress core file
- wp_enqueue_script silently fails [closed]
- Bootstrap navbar responsiveness on WordPress theme menu not working
- How to include a JS file in this theme?
- Loop through arguments of a function
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- wp_enqueue doesn’t load dependencies
- How to enqueue js script after another specific js script?
- Dequeue/deregister scripts for everybody but the administrator
- comment-reply.js is not loading
- How can I specifically enqueue scripts for edit orders pages only