This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.
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_menufunctionthesis_hook_before_headerhook
- Header
- By default, the header contains your site title and tagline, and it appears directly beneath your nav menu.
thesis_default_headerfunctionthesis_hook_headerhook
- 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_tagsfunctionthesis_hook_after_posthook
- Comments link
- This is the “{ 2 comments }” text that appears after each post on index and archive pages.
thesis_comments_linkfunctionthesis_hook_after_posthook
- Post navigation
- Links to the preceding and succeeding posts that appear only on single post pages.
thesis_prev_next_postsfunctionthesis_hook_after_contenthook
- Previous/next post navigation
- Paged-based post navigation that appears only on index and archive pages
thesis_post_navigationfunctionthesis_hook_after_contenthook
- 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_checkboxfunctionthesis_hook_after_comment_boxhook
- Archives template
- If you’re creating an Archives Page, this is used to display the default content for the page.
thesis_archives_templatefunctionthesis_hook_archives_templatehook
- Custom template
- If you’ve selected “Custom Template” for a specific page, this is used to display the default content for that page.
thesis_custom_template_samplefunctionthesis_hook_custom_templatehook
- Thesis attribution
- The DIYthemes attribution link is hooked into place by default.
thesis_attributionfunctionthesis_hook_footerhook
- Feature Box
- Thesis uses a hook to add the Feature Box (depending on your Design Option configuration selections)..
thesis_feature_boxfunctionthesis_hook_after_post_boxhookthesis_hook_before_headerhookthesis_hook_before_content_boxhookthesis_hook_before_contenthook
- 404 page title
- Because your 404 page’s title and content are hooked into place, your 404 page is completely customizable!
thesis_404_titlefunctionthesis_hook_404_titlehook
- 404 page content
- You can add any HTML you want to your 404 page’s content area.
thesis_404_contentfunctionthesis_hook_404_contenthook
- You can also consult
launch.phpfor this same information… It’s pretty crucial for developers. ↩