WordPress.org

Ready to get started?Download WordPress

Forums

Can't attach Javascript to theme (1 post)

  1. tmyie
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic