Support » Themes and Templates » Can't attach Javascript to theme

Can't attach Javascript to theme

  • I’m currently learning theme development, and tweaking the twentytwelve theme. I’ve got an external javascript file I’m trying to link, but it won’t seem to register. The codex tells me:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/pathto/yourscript.js"></script>

    which I’ve changed the filename, to suit my purpose:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>//trans.js"></script>

    However, this is still not working. Am I missing something?

  • The topic ‘Can't attach Javascript to theme’ is closed to new replies.