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 :: email regex specific domain simple 
Javascript :: jquery onclick function 
Javascript :: datatable remove show 
Javascript :: javascript regex email 
Javascript :: js wait for time 
Javascript :: find intersection of multiple arrays in javascript 
Javascript :: javascript detect mobile device 
Javascript :: get input value on keypress jquery 
Javascript :: getelementbyclass 
Javascript :: remove string from array in js 
Javascript :: append li to ul javascript 
Javascript :: after load page jquery 
Javascript :: javascript copy text to clipboard 
Javascript :: javascript password generator example 
Javascript :: UnhandledPromiseRejectionWarning: Error: Node is either not clickable or not an HTMLElement 
Javascript :: regex a-z javascript 
Javascript :: print object in javascript 
Javascript :: convert 2 dimensional array to js object 
Javascript :: javascript canvas touchmove 
Javascript :: js is directory 
Javascript :: using material ui icons in react 
Javascript :: if string has number javascript 
Javascript :: remove hidden attribute in js 
Javascript :: clearinterval in useeffect 
Javascript :: get query param javascript 
Javascript :: js convert nodelist to array 
Javascript :: how to set form control value in angular 
Javascript :: take input from input array field jquery 
Javascript :: how to get uri segment in js 
Javascript :: protractor window size 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =