The old code snippet from BuySellAds.com didn’t require to change anything in the code of a site/blog; only to be copypasted into a text widget was the deal. The new code is much better as it is not blocking the rest of the page while it’s loading, but you have to put a code snippet right after the opening <body> tag on all pages. In Thematic, this can be easily accomplished without any plugins or theme file hacks, just paste this into the functions.php of your child theme:
[cc lang=“php”]
<?php
function bsa_before() { ?>
<?php }
add_action(‘thematic_before’, ‘bsa_before’);
?>
[/cc]
Then you can put the actual ad slot code from the ‘Get ad code’ page into a text widget in your sidebar, or any other place as you wish.
2 Comments
Simple but very useful! Thanks Eugen.
You’re welcome!