Title: wp_head problem (javascript problem)
Last modified: August 19, 2016

---

# wp_head problem (javascript problem)

 *  Resolved [chandamon](https://wordpress.org/support/users/chandamon/)
 * (@chandamon)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/)
 * In the header, once I call <?php wp_head() ?>, all the javascript applications
   don’t work. And then I delete this line away, the apps based on javascript work.
   However, the GD star rating plugin doesn’t work in that way maybe becoz I made
   mistake when I inserted the javascript of GD star rating manually…
 * It’s so strange that all the same codes/same files work in another site perfectly
   but now the 3cmusic.com gets problem with <?php wp_head() ?>.
    How can I repair
   this function to enable all plugins based on javascript to run properly?
 * This is the site the wp_head gets problem
    [http://3cmusic.com/home/?p=1321](http://3cmusic.com/home/?p=1321)
 * This is the site with exactly same code working properly
    [http://www.chandamon.com/test2/?p=337](http://www.chandamon.com/test2/?p=337)
 * hope you guys can help me…I am completely baffled@@
 * Many many thanks.

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067757)
 * Both have errors as one is shown here, [http://validator.w3.org/check?uri=http%3A%2F%2F3cmusic.com%2Fhome%2F%3Fp%3D1321&charset=%28detect+automatically%29&doctype=Inline&group=0](http://validator.w3.org/check?uri=http%3A%2F%2F3cmusic.com%2Fhome%2F%3Fp%3D1321&charset=%28detect+automatically%29&doctype=Inline&group=0)
 * Suggest you clean up your code.
 *  Thread Starter [chandamon](https://wordpress.org/support/users/chandamon/)
 * (@chandamon)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067775)
 * hey thanks
    but I don’t think the errors/warnings are the crux of it@@
 * I believe it is wp_head and I have seen people saying they have some similar 
   problems with jquery due to wp_head too.
 * Actually to make it short, the main thing is the conflict between wp_head and
   other jquery applications… I put the wp_head again and now gd rating works fine
   but the rest like enhanced categories doesn’t function…
 * @@
    Please help and advise!!!
 * [http://3cmusic.com/home/?p=1321](http://3cmusic.com/home/?p=1321)
 *  Thread Starter [chandamon](https://wordpress.org/support/users/chandamon/)
 * (@chandamon)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067785)
 * please help@@
 *  [Dave Doolin](https://wordpress.org/support/users/doolin/)
 * (@doolin)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067922)
 * chandamon:
 * I’m having some sort of similar problem, javascript simply stopped working on
   two of my sites. This is for both the displayed web site and for the admin interface.
   I have installed no new plugins since javascript last worked.
 * I won’t tell you to RTFM… that just means I don’t know the problem is myself.
 * What I’m doing is copying everything down to my local wamp installation to pick
   it apart. That way the website doesn’t go down as I remove all the plugins.
 * Please post any updates.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067923)
 * kmessinger gave valid advice…
 * Invalid markup can cause any number of problems. I’d not expect anyone to help
   you, unless you want to help yourself, and that starts by validating your code.
 * I mean that in the nicest possible way.. 🙂
 *  [Dave Doolin](https://wordpress.org/support/users/doolin/)
 * (@doolin)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067924)
 * chandamon,
 * In my case, I’m pretty sure it’s a plugin (e.g., current issue with Sociable)
   or a wordpress problem, because posts containing a certain piece of javascript
   code will work when displayed individually, but will NOT work when displayed 
   on the front page.
 * I’m not sure we are having the same specific problem with javascript, but I’ll
   be delighted to help you in any way I can once I figure what’s going wrong on
   my site.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067927)
 * If you only need the JS on single posts, then just wrap the add_action in..
 *     ```
       if(is_page() || is_single()) {
   
       }
       ```
   
 * So it’s only activated on pages and single post pages…

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

The topic ‘wp_head problem (javascript problem)’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [wp_head](https://wordpress.org/support/topic-tag/wp_head/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/wp_head-problem-javascript-problem-1/#post-1067927)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
