ThemeShaper Forums » Thematic

[closed]

Adding javascript to the head

(3 posts)
  • Started 13 years ago by janjan32
  • Latest reply from janjan32
  • This topic is resolved
  1. janjan32
    Member

    Sorry for the newbie question, but I'm trying to add javascript to the head tag of my theme, but not really sure how to do it.
    I'm assuming I need to add some code to the functions.php, but really don't know how to go about it. I've been searching around and have found a ton of other cool tips, but not really what I'm looking for. I must be blind right?

    This is the code I want to add to control my menu.

    <script type="text/javascript" src="path/to/jquery.js"></script>
    <script type="text/javascript" src="path/to/jquery.lavalamp.js"></script>
    <!-- Optional -->
    <script type="text/javascript" src="path/to/jquery.easing.js"></script>
    
    <script type="text/javascript">
        $(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
    </script>

    Help!

    Posted 13 years ago #
  2. Hi janjan-

    try taking a look at this thread:

    http://forums.themeshaper.com/topic/best-way-to-add-additional-jquery-scripts

    -Gene

    Posted 13 years ago #
  3. janjan32
    Member

    Thanks Gene,
    that helps. I guess I should have searched for jquery scripts. : )

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.