Description:
This action hook is used as a placeholder for the insertion of code after the opening of the body tag and before the opening #wrapper tag.
Usage:
<?php add_action( 'thematic_before', 'childtheme_function_name' ); ?>
Example:
The following is an example of injecting a JavaScript for BuySellAds below the body tag.
function childtheme_bsa_script() { ?> //<![CDATA[ <script type="text/javascript"> (function(){ var bsa = document.createElement('script'); bsa.async = true; bsa.src = '//s3.buysellads.com/ac/bsa.js'; (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa); })(); </script> //]]> <?php } // hook the child theme function into Thematic's action hook add_action( 'thematic_before', 'childtheme_bsa_script');