If you haven’t heard already, Thesis theme for WordPress is the most flexible of all the available themes, and its structure is quite different as well. It uses hooks, which completely replaces the generic files such as single.php, page.php and so on. The idea, as the developer says is to give control to users who do not know PHP or CSS. Duh!
Right, I know some coding and I struggled to put a header leaderboard ad on Go! Zines. Long story short, I did it finally, and it took me quite a few bullish hours to understand the system and to implement it.
Here’s how it happened (I am an Adrian Monk fan :)):
1. Go to custom file editor under Thesis options in your WordPress backend.
2. Select the file custom_functions.php to edit.
3. After the <?php, insert:
function my_header_ad() { ?>
<div id="leaderboard_ad" style="display:block;float:right" >
YOUR GOOGLE ADSENSE HERE!
</div>
<?php }
add_action(‘thesis_hook_before_title’, ‘my_header_ad’);
4. Hit the big ass save button and you are done!
5. Buy The Thesis Theme for WordPress. It’s really worth it…
The solution was easy, but the process to it was arduous. Here are some resources that I found particularly useful:
1. Thesis Hook Reference List
2. How to Customize Thesis Theme like a Pro
Popularity: 1% [?]
Related posts:
{ 1 trackback }