The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript WP issue Reply To: WP issue


Just sorted it out. In a way…

I had to use the full URL in the header.php:

<link rel="stylesheet" href="" />

<script type="text/javascript" src=""></script>

But wanted to do this through calling the scripts in the functions.php and use
<?php wp_enqueue_script() ?> in the header.php. But I didn’t make it work…

Any ideas how to do this? I read everywhere that the scripts should not go in the header.php.