Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

wp_enqueue_script bootstrap 5

function your_script_enqueue() {
   wp_enqueue_script( 'bootstrap_js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array('jquery'), NULL, true );
   
   wp_enqueue_style( 'bootstrap_css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css', false, NULL, 'all' );
   wp_enqueue_style( 'custom_style', get_template_directory_uri() . '/css/your_style.css', array(), '1.0.0', 'all');
 
   wp_enqueue_script( 'custom_js', get_template_directory_uri() . '/js/custom.js' ); 
}

add_action( 'wp_enqueue_scripts', 'your_script_enqueue' );
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to create an array of specific length in javascript 
Javascript :: jquery onchange input value 
Javascript :: how to find prime numbers in an array in javascript 
Javascript :: regex email javascript 
Javascript :: how to check if jquery is loaded 
Javascript :: javascript do arrays intersect 
Javascript :: disable click event jquery 
Javascript :: how to math 
Javascript :: javascript how to create an array from 1 to 100 
Javascript :: insertafter jquery 
Javascript :: discord.js kick user 
Javascript :: javascript count elements in json object 
Javascript :: hello world program in node js 
Javascript :: detect if scrolled to bottom 
Javascript :: jquery checkbox set checked 
Javascript :: change favicon with javascript 
Javascript :: print object javascript 
Javascript :: converting binary to text js 
Javascript :: javasctipt unix timestamp from date 
Javascript :: helmet graphql playground 
Javascript :: yarn add material ui 
Javascript :: see if discord message is in dm discord.js 
Javascript :: if document is loaded 
Javascript :: http request in js 
Javascript :: how to get query param in javascript 
Javascript :: javascript validate number only 
Javascript :: text to speech js 
Javascript :: javascript random number between 
Javascript :: how to check nan in jquery 
Javascript :: React + modal: input field auto focus 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =