WordPress.org

Ready to get started?Download WordPress

Forums

Can't attach Javascript to theme (1 post)

  1. tmyie
    Member
    Posted 10 months 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?

Reply

You must log in to post.

About this Topic