Title: Add JavaScript to header?
Last modified: August 18, 2016

---

# Add JavaScript to header?

 *  [renderpro](https://wordpress.org/support/users/renderpro/)
 * (@renderpro)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/add-javascript-to-header/)
 * Hi there, I am trying to enable the Nifty Corners ([http://pro.html.it/articoli/id_599/idcat_31/pag_2/pag.html](http://pro.html.it/articoli/id_599/idcat_31/pag_2/pag.html))
   hack to my WordPress 2/K2 site. I can’t seem to get it to work. The instructions
   say to add this to the header:
 * `<link rel="stylesheet" type="text/css" href="/styles/niftyCorners.css">
    <link
   rel="stylesheet" type="text/css" href="/styles/niftyPrint.css" media="print">
   <script type="text/javascript" src="/styles/nifty.js"></script> <script type="
   text/javascript">//<![CDATA[ window.onload=function(){ if(!NiftyCheck()) return;
   Rounded("div#nifty","all","#CCC","#D4DDFF","smooth"); } //]]></script>
 * I looked at the JavaScripts in the K2 header for reference, but I can’t get any
   results.
 * Anyone know how to add javaScripts to the K2/Wordpress Header?
 * Thanks in advance.

Viewing 1 replies (of 1 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/add-javascript-to-header/#post-338007)
 * I have no idea about K2 or anything code it has inside it, but this seems generic.
 * I assume you have uploaded the js file to
    `/styles/nifty.js` because otherwise
   it looks okay (though I always use full url’s to all scripts rather than relative
   url’s)

Viewing 1 replies (of 1 total)

The topic ‘Add JavaScript to header?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/add-javascript-to-header/#post-338007)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
