Can't load script when using wp_enqueue_script
<p>I'm trying to use a script called show_post.js on my Wordpress site. I've successfully loaded it directly in header.php:</p>

<pre><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="wp-content/themes/tutorial_theme/scripts/show_post.js"&gt;&lt;/script&gt;
</code></pre>

<p>However, when I'm trying to do it via functions.php and wp_enqueue_script it won't work. Here is my functions.php file:</p>

<pre><code>&lt;?php function wpdocs_scripts_method() {
   wp_enqueue_script('show_p', '/wp-content/themes/tutorial_theme/scripts/show_post.js', array( 'jquery' ));
}
add_action( 'wp_enqueue_scripts', 'wpdocs_scripts_method' );
?&gt;
</code></pre>

<p>What am I doing wrong here?</p>