• Hi there, I am trying to enable the Nifty Corners (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)
  • 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.