This has been giving me fits. I've been trying to build my first custom theme and I'm stuck pretty early on... I've been following tutorials and checking the Wordpress Codex, but I'm pretty new to this. It's not including a stylesheet at all, and when I try to include the js, I get an error "This Page Isn't Working".
<?php
function jw_script_enqueue() {
wp_enqueue_style('custom-style', get_template_directory_uri() . '/css/jw-custom.css', array(), false, 'all' );
we_enqueue_script('custom-js', get_template_directory_uri() . '/js/jw-custom.js', false, true)
}
add_action( 'wp_enqueue_scripts', 'jw_script_enqueue');
Here is my header:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JW Custom</title>
<?php wp_head(); ?>
</head>
<body>
and here is my footer:
<footer>
© 2018 JW Custom
</footer>
<?php wp_footer(); ?>
</body>
</html>
My filepaths are correct. Any help would be greatly appreciated. What should I change?
wp_enqueue_script. You've gotweinstead ofwp