I have just bought a license for Thesis (aff) today, and I wanted to share with you how to implement the really cool PHP custom hooks from SEO Booster PRO to your Thesis theme.
One of the many benefits of Thesis is how easy it is to customize without ever touching the theme files.
If you want to add SEO Booster PROs custom PHP function to your Thesis Theme, it is really easy. Go to the custom-functions.php file, and add the following:
function add_to_byline() {
if(function_exists('seoboosterpro_boostlist')){
seoboosterpro_boostlist('<h2>','</h2>','',', ',2);
}
}
add_action('thesis_hook_byline_item', 'add_to_byline', '99');
function after_content() {
if(function_exists('seoboosterpro_boostlist')){
seoboosterpro_boostlist('<ul>','</ul>','<li><strong>','</strong></li>',10);
}
}
add_action('thesis_hook_after_post', 'after_content');
Adding that code allows you to dynamically display the most popular incoming searches from Google beneath your title-tag as well beneath your blog post as an unordered list.




{ 1 trackback }