Pearsonified Skin Hooks

Looking to interact with Pearsonified in a programmatic way? Use these hook locations to do anything you want, wherever you want!

Hooks Common to All Templates

  • hook_before_html — insert anything before the HTML output (just after the opening <body> tag) on every page
  • hook_after_html — insert anything after the HTML output (just before the closing </body> tag) on every page

Template- and Context-specific Hooks

In the Pearsonified Skin, the following elements each have four hooks associated with them by default:

  • container
    • header
    • columns
      • content
        • archive_intro
        • home (Post Box)
        • archive (Post Box)
        • single (Post Box)
        • page (Post Box)
        • landing_page (Post Box)
          • headline_area (common to all Post Boxes)
        • comments_post
        • comments_page
          • comment
            • comment_head
          • comment_form
        • prev_next
      • sidebar
    • footer

If each of the above elements can be represented by $hook, then the four hooks available on each element are as follows:

  • hook_before_$hook (before the opening tag)
  • hook_top_$hook (just after the opening tag)
  • hook_bottom_$hook (just before the closing tag)
  • hook_after_$hook (after the closing tag)

Using the home element (which represents the Post Box from the Home template) as an example, these are the four available hooks:

  • hook_before_home (before the opening tag)
  • hook_top_home (just after the opening tag)
  • hook_bottom_home (just before the closing tag)
  • hook_after_home (after the closing tag)

As you can see, the Pearsonified Skin provides many specific hook locations for you to use in its custom.php file. However, you’re not limited by the hooks listed here—you can always add your own hook locations anywhere you want at any time!