Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: adding scripts to header


chrishajer
Participant

@chrishajer

How about using the full URI to the javascript? In your script tags, you can use a template tag to add the template path including where you stored the files. Once you are sure they’re referenced properly and actually being loaded, you can go from there.

<script type="text/javascript" src="<?php bb_active_theme_uri(); ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php bb_active_theme_uri(); ?>js/jquery.accordion.js"></script>
<script type="text/javascript" src="<?php bb_active_theme_uri(); ?>js/jqq.js"></script>

And when you say “doesn’t work so far” do you mean it’s like the javascript is just not there, no action, or something else?

Skip to toolbar