The Comprehensive List of Thesis Hooks and Thesis Filters

by Matt on March 1, 2010

When it comes to being a Thesis developer, there is one thing I have been unable to live without: Thesis Hooks. Good ol’ Chris Pearson has hooked us devs up with…well, a ton of hooks. The Thesis hooks list below tells you all 54 hooks in the order they appear in hooks.php. Before the list of hooks is the filters list with the corresponding file name.

Thesis Filters List

  1. Comments.PHP

    • thesis_comments_link
    • thesis_comments_intro
    • thesis_avatar
    • thesis_comments_navigation
  2. Compatibility.PHP

    • thesis_custom_field_keys
  3. Content.PHP

    • thesis_content_classes
    • thesis_image_caption_shortcode
  4. Document.PHP

    • thesis_body_classes
  5. Widgets.PHP

    • thesis_search_form_value

Thesis Hooks List

  1. thesis_hook_before_html - right after body.custom
  2. thesis_hook_after_html - after #container and before /body
  3. thesis_hook_before_header - between .menu and #header
  4. thesis_hook_after_header - between #header and #content_box, before thesis_hook_before_content_box
  5. thesis_hook_header - within #header, after #tagline, after thesis_hook_after_title
  6. thesis_hook_before_title - within #header before #logo
  7. thesis_hook_after_title - within #header, after #tagline, before thesis_hook_header
  8. thesis_hook_first_nav_item - right after .menu, before the first li
  9. thesis_hook_last_nav_item - within .menu, right after last li
  10. thesis_hook_before_content_box - between #header and #content_box, after thesis_hook_after_header
  11. thesis_hook_after_content_box - between #content_box and #footer
  12. thesis_hook_content_box_top -
  13. thesis_hook_content_box_bottom -
  14. thesis_hook_before_content - right after #content
  15. thesis_hook_after_content - at the end of #content, after .prev_next
  16. thesis_hook_before_content_area - before #content_area, only in full width framework
  17. thesis_hook_after_content_area - after #content_area, only in full width framework
  18. thesis_hook_feature_box - within #feature_box, either the first item within #content, between #header and #content_box, or between .menu and #header
  19. thesis_hook_before_post_box - after #content, before first post
  20. thesis_hook_after_post_box - within each .post, at the very end
  21. thesis_hook_before_teasers_box - within and at the beginning of .teasers_box
  22. thesis_hook_after_teasers_box - after each .teasers_box div
  23. thesis_hook_before_post - within and at the very beginning of .format_text
  24. thesis_hook_after_post - at the end of .format_text, after .to_comments
  25. thesis_hook_before_teaser_box - before each .teaser
  26. thesis_hook_after_teaser_box - after each .teaser [this one is a little tricky]
  27. thesis_hook_before_teaser - first thing within .format_teaser
  28. thesis_hook_after_teaser - last thing within .format_teaser
  29. thesis_hook_before_headline - first thing within headline_area
  30. thesis_hook_after_headline - right after .entry-title
  31. thesis_hook_before_teaser_headline - before each .teaser's .entry-title
  32. thesis_hook_after_teaser_headline - right below each .teaser's .entry-title
  33. thesis_hook_byline_item - right after .headline_meta
  34. thesis_hook_before_comment_meta - first thing within each dt.comment
  35. thesis_hook_after_comment_meta - last thing within each dt.comment
  36. thesis_hook_after_comment - last thing within each dd.comment .comment-body-n
  37. thesis_hook_after_comments - right after dl#comment_list
  38. thesis_hook_comment_form_top -
  39. thesis_hook_comment_field - right after #comment_form p
  40. thesis_hook_after_comment_box -
  41. thesis_hook_comment_form_bottom -
  42. thesis_hook_comment_form - right after .comment_box, before the submit button
  43. thesis_hook_archives_template - Used to customize the appearance of the Archives Template (archives.php). This hook calls the thesis_archives_template function by default. //from DIYthemes
  44. thesis_hook_custom_template - your very own custom page custom template replacing #content_box
  45. thesis_hook_faux_admin - within div#content_box (and also div#column_wrap if a sidebars-first three-column layout is in use) //from DIYthemes
  46. thesis_hook_archive_info - Above the first post only on archive views. //from DIYthemes
  47. thesis_hook_404_title - within a 404 page's .headline_meta h1
  48. thesis_hook_404_content - last thing within a 404 page's .format_text
  49. thesis_hook_before_sidebars - first thing within #sidebars
  50. thesis_hook_after_sidebars - last thing within #sidebars
  51. thesis_hook_multimedia_box - contents of #multimedia_box #custom_box
  52. thesis_hook_after_multimedia_box - after #multimedia_box, before #sidebar_1 and/or #sidebar_2
  53. thesis_hook_before_sidebar_1 - first thing within #sidebar_1 .sidebar_list, before the first li
  54. thesis_hook_after_sidebar_1 - last thing within #sidebar_1 .sidebar_list, after the last li
  55. thesis_hook_before_sidebar_2 - first thing within #sidebar_2 .sidebar_list, before the first li
  56. thesis_hook_after_sidebar_2 - last thing within #sidebar_2 .sidebar_list, after the last li
  57. thesis_hook_before_footer - right before #footer and after #content_box
  58. thesis_hook_after_footer - after #footer, but still within #page
  59. thesis_hook_footer - between attribution link and WP Admin link in #footer

Well, there you have it folks. A list of every single Thesis Hook available as of Thesis 1.6.

If you are interested in developing sites on Thesis, be sure to upgrade to the developer's option. If you don't have Thesis, you had better pick it up now!

{ 1 trackback }

{ 4 comments… read them below or add one }

Willie Jackson March 24, 2010 at 12:12 am

How on earth did I miss this? Bookmarked!

Reply

Matt March 24, 2010 at 11:25 am

@Willie
I was desperate for a simple list that tells where each hook is. I don’t like the ‘visual list’ so I did a plain text one. I use it almost every day.

Reply

Mischa April 28, 2010 at 10:35 am

1) Matt, you’re da bomb.

2) Is there a hook to include something WITHIN the opening tag? I’d like to put my on <BODY onLoad… javascript in there….

Reply

Daniel June 30, 2010 at 5:42 pm

Thanks for sharing this resource! It’s a lot simpler than digging into the core files every time you want to find the full list of hooks.

Reply

Leave a Comment

Previous post:

Next post: