Ancient Chinese proverb: it should never be your code that changes, only your design! And that’s only one reason why you need Thesis.

Default Hook Usage in Thesis

In its default state, Thesis hooks quite a few elements into place. This provides for easy and effective customization in the form of adding, deleting, or moving these “hooked” elements around the theme via the Thesis hook system.

Occasionally, you may need to un-hook (or remove) one or more of these elements, and you’ll need to know which hook to target in order to get your desired result. The following list details these default elements and their associated hooks1:

Thesis nav menu
This is the page-based navigation menu that contains your “home” link.

  • thesis_nav_menu function
  • thesis_hook_before_header hook
Header
By default, the header contains your site title and tagline, and it appears directly beneath your nav menu.

  • thesis_default_header function
  • thesis_hook_header hook
Post tags
This is a simple list of the tags associated with a particular post. You can control its visibility in the Thesis Options panel, and you can change its location by moving it to a different hook.

  • thesis_post_tags function
  • thesis_hook_after_post hook
Comments link
This is the “{ 2 comments }” text that appears after each post on index and archive pages.

  • thesis_comments_link function
  • thesis_hook_after_post hook
Post navigation
Links to the preceding and succeeding posts that appear only on single post pages.

  • thesis_post_navigation function
  • thesis_hook_after_content hook
Previous/next post navigation
Paged-based post navigation that appears only on index and archive pages

  • thesis_prev_next_posts function
  • thesis_hook_after_content hook
Subscribe to Comments plugin compatibility
If you’re using the Subscribe to Comments plugin, Thesis will detect this and add the appropriate code to your comment form.

  • show_subscription_checkbox function
  • thesis_hook_comment_form hook
Archive page information box
On archive pages, the informational block that appears above the list of posts is hooked into place.

  • thesis_default_archive_info function
  • thesis_hook_archive_info hook
Thesis attribution
The DIYthemes attribution link is hooked into place by default.

  • thesis_attribution function
  • thesis_hook_footer hook
Footer scripts
Thesis uses a hook to insert the footer scripts that you can define in your Thesis Options panel.

  • thesis_footer_scripts function
  • thesis_hook_after_html hook
404 page title
Because your 404 page’s title and content are hooked into place, your 404 page is completely customizable!

  • thesis_404_title function
  • thesis_hook_404_title hook
404 page content
You can add any HTML you want to your 404 page’s content area.

  • thesis_404_content function
  • thesis_hook_404_content hook
  1. You can also consult launch.php for this same information… It’s pretty crucial for developers.