Add after body hook hack in wordpress (e.g. for Facebook Like button SDK) without modifying header.php

I wish to add the Facebook Like button to my wordpress – this requires that I add the following code right after <body&lt: <div id="fb-root"></div><script>(function(d, s, id) { … }(document, ‘script’, ‘facebook-jssdk’));</script> My solution Make a functions.php file in your child theme and add the following code (or append it to your main functions.php if […]