Created
May 20, 2020 04:31
-
-
Save nearfal08/d9decce0a883e02f466965c2debf8260 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function loadCss() { | |
wp_enqueue_style('bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css'); | |
} | |
function loadJavascript() { | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.5.1.slim.min.js', array(), null, true); | |
wp_enqueue_script('popperjs', 'https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js', array('jquery'), false, true); | |
wp_enqueue_script('bootstrapjs', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js', array('jquery'), false, true); | |
} | |
add_action('wp_enqueue_scripts', 'loadCss'); | |
add_action('wp_enqueue_scripts', 'loadJavascript'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment