Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM How to include .js in Cardinal Theme?
#3
(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)
Reply


Messages In This Thread
How to include .js in Cardinal Theme? - by gordan - 2014-12-29, 10:42:49
RE: How to include .js in Cardinal Theme? - by vallhund - 2014-12-31, 19:54:26



Users browsing this thread: 1 Guest(s)