"Enqueue Styles and Scripts in Wordpress Code for Function file"
Bootstrap 4.1.1 Snippet by iammohitverma

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> </div> </div>
add_action("wp_enqueue_scripts","brothers_custom_scripts"); function brothers_custom_scripts(){ wp_enqueue_style( 'slick-css', get_theme_file_uri("assets/slick/slick.css")); wp_enqueue_style( 'slick-theme-css', get_theme_file_uri("assets/slick/slick-theme.css")); wp_enqueue_style( 'bootstrap-css', get_theme_file_uri("assets/css/bootstrap_style.css")); // wp_enqueue_style( 'font_awesome_all-css', get_theme_file_uri("assets/css/font_awesome_all.min.css")); wp_enqueue_style( 'custom-css', get_theme_file_uri("assets/css/custom_style.css")); wp_enqueue_script("jquery"); wp_enqueue_script( 'slick-min-js', get_theme_file_uri( 'assets/slick/slick.min.js' ), array("jquery")); wp_enqueue_script( 'font_awesome_all-js', get_theme_file_uri( 'assets/js/font_awesome_all.min.js' ), array("jquery")); wp_enqueue_script( 'main-script-js', get_theme_file_uri( 'assets/js/main.js' ), array("jquery")); }

Related: See More


Questions / Comments: