Hello everyone,
Currently, I have some inline javascript in the frontpage.php and general.php files of my theme. I want to consolidate all of the scripting into a single js file and reference it in the config like so:
$THEME->javascripts = array(
'jquery-1.9.0.min',
'jquery-migrate-1.0.0.min',
'custom',
);
If I take the inline javascript out though, and put them into a custom.js file, those functions disappear... So obviously the page is not pulling in the javascript file(s) from the array in the config file... I know the custom.js file isn't loading and it makes me wonder if the jquery libraries are not loading either... Here is the inline javascript:
jQuery('.backtotop').click(function(){
jQuery('html, body').animate({scrollTop:0}, 'slow');
});
Is there a step that I am missing to get these js files to load via the array in the config file?