function leanwaste_enqueue_styles() { wp_register_style( 'parent', get_template_directory_uri() . '/style.css'); wp_register_style('child', get_stylesheet_uri()); wp_register_style('bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css'); wp_register_style('mdb', 'https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css'); wp_register_style('datatables', get_stylesheet_directory_uri() . '/mdb/css/addons/datatables2.min.css'); wp_register_script('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js', [], false, true); wp_register_script('mdb', 'https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js', [], false, true); wp_register_script('datatables', get_stylesheet_directory_uri() . '/mdb/js/addons/datatables2.min.js', [], false, true); wp_register_script('main', get_stylesheet_directory_uri() . '/assets/js/main.js', [], false, true); wp_enqueue_style('parent'); wp_enqueue_style('child'); wp_enqueue_style('bootstrap'); wp_enqueue_style('mdb'); wp_enqueue_style('datatables'); wp_enqueue_script('bootstrap'); wp_enqueue_script('mdb'); wp_enqueue_script('datatables'); wp_enqueue_script('main'); } add_action('wp_enqueue_scripts', 'leanwaste_enqueue_styles');