[solved] Why am I getting double the JavaScript in footer
Permalink
I have this in my footer
and this is what is showing up in the source
Plus I have jQuery in the head too.
TIA
and this is what is showing up in the source
<script src="/c5/application/themes/tr/js/bootstrap.min.js" type="text/javascript"></script> <script src="/c5/application/themes/tr/js/myscript.js" type="text/javascript"></script> <script src="/c5/application/themes/tr/js/jquery-2.1.3.min.js" type="text/javascript"></script> <script src="/c5/application/themes/tr/js/bootstrap.min.js" type="text/javascript"></script> <script src="/c5/application/themes/tr/js/myscript.js" type="text/javascript"></script>
Plus I have jQuery in the head too.
TIA
Please share your entire footer.php and page_theme.php (if exists)
The first 2 lines of code above is the footer. Below is page_theme.php
<?php namespace Concrete\Theme\Concrete; class PageTheme extends \application\themes\tr { public function registerAssets() { $this->providesAsset('javascript', 'bootstrap/*'); $this->providesAsset('css', 'bootstrap/*'); } protected $pThemeGridFrameworkHandle = 'bootstrap3'; }
your page_theme.php seems no problem.
only two lines in your footer.php?
only two lines in your footer.php?