Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Marosi Dóra
Added: Dec 7, 2020 8:38 PM
Views: 9
Tags: no tags
  1. add_action( 'wp_enqueue_scripts', 'enqueue_styles' );
  2. function enqueue_styles() {    
  3.     wp_enqueue_style( 'bootstrap_css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css', false );    
  4.     //wp_enqueue_script( 'popper', 'https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js', array('jquery'));
  5.     wp_enqueue_script( 'bootstrap_js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js');  
  6. }