For my last post (talking about a really cool jQuery plugin) I really wanted to display the talked about effect on the site, not least because I wanted to play about with it some!
In order to do that I had to make some changes to my theme, which I figured I should document.
I went into my theme directory and created /js/themename.js
I edited the header (themename/header.php) to include jQuery and /js/themename.js…
<script src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/jquery-1.3.2.min.js” type=”text/javascript” ></script>
<script src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/lightword.js” type=”text/javascript” ></script>
Inside of themename.js I created my $(document).ready() call and gave it the code it required.
I uploaded /themename/header.php, /themename/js/themename.js and themename/js/jquery-1.3.2.min.js to the site.
That is it!
An issue I have been pondering lately is how much time to dedicate to trawling through programming language manuals and doc files looking for built in functions to perform a particular task.
About a month or two ago I was given a Mac in work to use to replace my shitty old Windows laptop.