How to add the DIYTheme Thesis Affiliate Banner

by DJ on February 3, 2010

For some odd reason, my blog (or webhost: 1and1.com) couldn’t display the affiliate banner when I linked directly from ShareASale.com. Just copied the image to my site, updated the link, and it worked as it should have.  Here’s the hook and HTML I used to get it to work:

function diytheme_affiliate_banner() {
?>
<div class="thesis_aff_banner"><a target="_blank" href="ADDYOURLINKHERE"><img src="http://www.YOURDOMAIN.com/blog/wp-content/themes/thesis_16/lib/images/thesis-125x125-1.png" alt="How smart is your Theme?  How good is your support? Check out ThesisTheme WordPress." border="0" /></a></div>
<?php
}
add_action('thesis_hook_before_sidebars','diytheme_affiliate_banner');

Note: Don’t forget to update the User ID and Domain and hook to the location of your choice.

Leave a Comment

Previous post:

Next post: