Design + Coding > OK to add this code?

I want to add code for LinkWithin, which says to place it in the blogs template before .

On the code injection point page I get a warning to be cautious as some code entered can render my site inaccessable. Will it be all right to add the LinkWithin code in "Extra Header Code" ?

Thanks

07.9.2009 | Registered CommenterK Delaney

K,

From taking a look at a couple sites that use LinkWithin, it looks like you can post the Script Code anywhere, so I don't think you will have an issue. The only issue you might have is Squarespace not knowing where to place the widget(s) on your page.

If it is something like this:

<script type="text/javascript">
var linkwithin_site_id = #####;
(function () {
var elem = document.createElement('script');
elem.type = 'text/javascript';
elem.src = 'http://www.linkwithin.com/widget.js?rand=' + Math.random();
document.getElementsByTagName('head')[0].appendChild(elem);
})();
</script>


You should be ok...

I'd like to know if it works in Squarespace, so if it is ok, please let us know and what your site is.

Regards,

Michael Zampiono
SS Site: mzampino.com

07.9.2009 | Registered CommenterMichael Zampino

Did you ever get this to work? I'm trying to add my linkwithin code but I don't know where to put it...?

11.6.2009 | Unregistered CommenterJessica

Hi Jessica,

You can place this code within the Footer of your site. Go to:

cubes in the upper right hand corner > Edit Website Footer

Hope this helps :)

11.6.2009 | Registered CommenterMichael Zampino