Home › Forums › JavaScript › WP issue › Reply To: WP issue
August 21, 2013 at 3:54 am
#147676
gabbagabba
Participant
Just sorted it out. In a way…
I had to use the full URL in the header.php:
<link rel="stylesheet" href="http://www.tomrerdahl.no/wp-content/themes/TD/tdgrid.css" />
<script type="text/javascript" src="http://www.tomrerdahl.no/wp-content/themes/TD/js/hiddenmenu.js"></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.