In the .tpl files. Everything and anything that's modified in vShare is only done thru the .tpl files. Put the code anywhere you like...at the very top or the bottom is usually the best places to stick in code.

Make sure to rename your original files on your server so that if things don't work out like you expect, you can revert back to the original...as some of us here know, it's really easy to break stuff.