javascript - How to include Custom Js in Bootstrap's custom Sub Theme directory For Drupal 7 -
my custom theme doesn't read javascript file have linked in .info
file. paths directory correct. while inspecting page shows default bootstrap script files.
i had exact same problem. workaround include script in html.tpl.php file:
- find html.tpl.php under sites > > themes > bootstrap > theme > system.
- make copy of file , add custom theme directory (sites > > themes > custom theme).
- create folder in custom theme javascript , name js.
- add javascript file js folder.
- open html.tpl.php file copied custom theme, , insert following line anywhere between tags:
- save, flush chache , should go.
Comments
Post a Comment