• Building a website and adding jquery is easy because you apply the Scripts to the index.html or what ever.html file you want them in, and they usually come with a seprate CSS style sheet depending on the lengh of the the css needed.

    Now assuming I wanted to add Jquery to my blog would I put the Jquery script tags in the index.php?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter adrien-1

    (@adrien-1)

    The other question I wanted to ask, which should be fairly simple is how to change the dat to grom from say 25-26-37 to 27-26-25…

    Adrien,

    What we typically do is add an additional js folder within the theme, then place the jQuery files / Plugins within and finally add the scripts in the header as you would normally do by way of absolute links to the js folder. The CSS can be added directly to the styles.css file.

    http://www.doc4design.com

    Thread Starter adrien-1

    (@adrien-1)

    Ok what about like if the Jqeury Script was to be applied to a specific link (such as a roll over -> Tool Tip) Such tools are applied to specific links and I am confused as to how to do this, Now what i am sensing is that I add the JQuery file(s) to the folder, place the css with in the style.css and then when writing a blog, call on it via using the rel=”” and any other tags required in the link tags? because if so then thats easy.

    Thread Starter adrien-1

    (@adrien-1)

    Also would the basis of the Header.php file look like this: (with Jquery files included?) -> see me

    also would the CSS go any where in the style.css? (as I would assume it dosent matter where you put the Jquery CSS….but you never know)

    because if all the above is correct my Jquery is not being called properly. in a post i place the call functions to call the jquery when making a new blog post but its not comunicated properly

    Adrien,

    After reading the jQuery plugin page I think you have it. The jQuery css can go anywhere in the style.css file unless it is specifically linked to from within the plugin itself.

    Your header scripts should look like this:

    <script src="http://www.mysite.com/wp-content/themes/default/Jquery/jquery.js" type="text/javascript"></script>

    Where you have the absolute path to the actual jQuery file. Give this a try and if it doesn’t work post the code you are using within the post itself.

    http://www.doc4design.com

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding Jquery’ is closed to new replies.