• Hi, I tried to implement Lightbox 2 Plugin on my blog, and had to add <?php wp_head(); ?>

    to the code. Once I add that, my JQuery based menu stops functioning. Once I remove <?php wp_head(); ?>, it starts working again.

    Here is the Header code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Justin Cener Designs | New Jersey Web Design and Social Marketing</title>
    <link rel="shortcut icon" href="http://www.justincener.com/images/favicon.ico" >
    <link rel="stylesheet" type="text/css" href="http://www.justincener.com/css.css" media="screen" />
    <!--[if IE]> <style type="text/css">@import "http://www.justincener.com/IE-override.css";</style> <![endif]-->
    <script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/jquery-1.2.6.min.js'></script>
    <script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/kwicks.js'></script>
    <script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/custom.js'></script>
    
    </head>
    <body>
    
    <div id="container">
    
    <div id="header">
    
    <div id="menu">
     <ul class="kwicks">
         <li id="kwick1"><a href="http://www.justincener.com/">Home</a></li>
         <li id="kwick2"><a href="http://www.justincener.com/services">Services</a></li>
         <li id="kwick3"><a href="http://www.justincener.com/portfolio">Portfolio</a></li>
         <li id="kwick4"><a href="http://www.justincener.com/blog">Blog</a></li>
         <li id="kwick5"><a href="http://www.justincener.com/contact/">Contact</a></li>
     </ul>
    </div><!--end menu-->
    
    <center><img src="http://justincener.com/images/logo.gif" height="172" width="551" alt="Justin Cener New Jersey Web and Graphic Design" /></center>
    
    </div><!--end header-->

    Then, in the page is the wp_head call. Is there some kind of trick to this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘JQuery dies once <?php wp_head(); ?> is added to header for Lightbox’ is closed to new replies.