php - Trouble adding custom javascript to a wordpress theme -
i've got wordpress site trying add custom javascript bit of functionality. can't seem javascript work. i've stripped javascript alert. i've looked around , seems should able add following functions.php
make work.
<?php wp_enqueue_script('schedule', get_bloginfo('template_url') . '/schedule.js',array('jquery'),'1.0',true); ?>
then current javascript function looks following now.
jquery(function(){alert('asd');});
what missing/what forgetting? able add css file in exact same fashion little confused not working.
Comments
Post a Comment