• Resolved morgs

    (@morgs)


    Hello,

    I have all the puzzle pieces to my theme working but with my jquery only the top most function will work. I just need a little help organising things properly. I think I am on the right track but obviously there is something I don’t understand about managing the jquery plugins etc. Everything works as long as it is the first function. The following 2 always stop working.

    Can you help me clean this up?
    Pastebin: http://wordpress.pastebin.com/m16ff836a

    Thanks
    Morgs

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morgs

    (@morgs)

    Front page output:
    http://wordpress.pastebin.com/m66583e9d

    Gallery output:
    http://wordpress.pastebin.com/m6e3a1ec3

    Menu output is in either of those links too.

    I must make a correct too…

    Seems that the way the head is currently organised the gallery and the menu work together fine but the frontpage slide show is broken.

    Thanks

    hi

    Your 2nd and third script contain a $. Replace it with jQuery and see if that resolves your issue

    Thread Starter morgs

    (@morgs)

    Ok, it was basically my fault. A lesson learned…

    I had my 3 scripts in the head but depending on the page I was only calling the jquery file and one of the other files so the scripts would die once they found an undefined function.

    Once I got all of my includes firing on the right pages I had no more problems.

    One look at an error console and I was able to work this one out myself very quickly.

    Thanks
    Hope this helps some other n00b one day.

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

The topic ‘Help cleaning up my header.php file please. (jquery)’ is closed to new replies.