WHERE SHOULD THE WIDGET CODE BE PLACED?

For widgets that are floating around corners and edges (i.e sidebar, sidewalk), the code should be placed right above the end body tag </body>. For widgets that are inline, it should be placed where the widget will be loading. WordPress users will place the code on the corresponding WP template.