php zp_apply_filter('theme_head') interfering with other JS (jquery)

So I'm working on a site with a bunch of other jquery stuff and it seems as if I have some interference.

I need php zp_apply_filter('theme_head') so the login/logout script works and so the admin toolbox works. (login should pop up the colorbox login script as well).

Here something weird too - w/o php zp_apply_filter('theme_head') and I'm logged in all the JS works fine...but of course the logout link doesn't work...when I'm logged out my JS doesn't work (JS is a dropdown menu)

I can't get both to co-exist - any suggestions?
Thanks
Mike

Comments

  • Well that was easy...I tried to just have php zp_apply_filter('theme_head') load ALL of my jquery stuff and that didn't work at first...noticed I was loading jquery.js myself AND through zen...Once I removed jquery.js from my stuff it's working fine...lol

    It's always nice to talk things out! HA
  • acrylian Administrator, Developer
    Did you look at your browser log about what the js errors are? Just small typoes also cause these kind of things. Also note that Zenphoto already loads jQuery and some other stuff needed for standarsd so in case you load jQuery a 2nd time it is most likely causing issues.

    For a dropdown menu you actaully don't even need JS in modern browsers at all. The ZP backend drop down is pure CSS. Take a look here: http://www.lwis.net/free-css-drop-down-menu/
  • Yeah see above - I was loading jquery.js twice. Thanks for that link though they are nice menus!
  • acrylian Administrator, Developer
    we probably posted around the same time.

    The menu I referred to is great because the design is just an example. They just provide a general setup you can restyle at a will.
Sign In or Register to comment.