2014-12-31, 19:54:26
(2014-12-29, 10:42:49)gordan Wrote: I'm trying to include, i.e. fetch two .js in Cardinal Theme because of making a responsive menu. I've put the two rows at the end of template.php before </body> tag, but I can't get script to load (work):
Code:<script src="<?php get_theme_url(); ?>/js/jquery-1.7.2.min.js"></script>
<script src="<?php get_theme_url(); ?>/js/script.js"></script>
Is there a trick or do something wrong?
Thnx!
these lines seem okay.
the problem may be with the paths (the scripts in must be '/themes/Cardinal/js/'), or there might be some javascript error (check the console log)