ThemeShaper Forums » Thematic

Adding javascript to the head

(3 posts)
  • Started 1 year 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 1 year ago #
  2. em hr
    Moderator

    Hi janjan-

    try taking a look at this thread:

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

    -Gene

    Posted 1 year ago #
  3. janjan32
    Member

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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.