Forum Replies Created

Viewing 1 replies (of 1 total)
  • simoneoor

    (@simoneoor)

    Many thanks from me as well. Spent all morning trying to get my javascript to work in the template, and it is this last tip from “iridiax” that finally sorted it!

    To recap (in case there are other beginners like me out there):

    in header.php, created after the meta section:

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/Scripts/myscriptfile.js”></script>

    In the template index.php (somewhere in body between divs, but not in a post in this case):

    <script type=”text/javascript”><!–//–>
    <![CDATA[//><!–
    myfunction(); //–><!]]>
    </script>

Viewing 1 replies (of 1 total)