How to enqueue style correctly
-
Hello, I have tried to enqueue my stylesheet, bootstrap and java script on my website, the function is working but I have seen it people adding array, and true or false at the end of the code and it made me wonder if there is something with the way I did it or it can be better.
Here is the current code that I am using:
<?php function pixground_styles() { // Styles wp_enqueue_style('pixground_bootstrap', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css'); wp_enqueue_style('pixground_style', get_template_directory_uri() . '/style.css'); // Scripts wp_enqueue_script('bootstrap_js', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js'); } add_action( 'wp_enqueue_scripts', 'pixground_styles' );
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to enqueue style correctly’ is closed to new replies.