Hi there,
I referenced your theme's functions.js on a wordpress child theme page template at the bottom of the page like so:
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/functions.js"></script>
and I have copied all the Canvas JS files from canvas 7 files/js into that folder (barber/js)
They generally seem to work, however, on page inspection I get a few 404 errors, so I have to manually reference the correct .js files one by one at the bottom of the same page like so:
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/functions.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/plugins.parallax.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/plugins.bootstrap.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/fn.onepage.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/barber/js/module.onepage.js"></script>I think this is because the Canvas functions.js file, which should just launch all the required scripts as and when necessary is making the browser search in the wrong place for the individual js files.
Is there an easy way to make the functions.js file pull the files from the correct location e.g:
"<?php bloginfo('stylesheet_directory'); ?>/barber/js"
without having to find out which ones are being used on the page by trial and error and referencing each of the required scripts manually?
Please let me know.
