Looking to interact with Promo in a programmatic way? Use these hook locations to do anything you want, wherever you want!
In the Promo Skin, the following elements each have container hooks, which are four hooks in one:
Standard Template Hooks
- header_wrap
- header
- promo_bar
- content_box_wrap
- content_box
- See content hooks below
- content_box
- footer_wrap
- footer
Blog Content Hooks
- content
- Â post_box_home
- byline_post
- prev_next
- Â post_box_home
Single Content Hooks
- content
- Â post_box_single
- byline_post
- comments_post
- comment_form
- Â post_box_single
- sidebar, not available on No Sidebars (Post)
Page/Full Page Content Hooks
- content
- Â post_box_page
- byline_page
- comments_page
- comment_form
- Â post_box_page
- sidebar, not available on No Sidebars (Page)
Landing Page Content Hooks
- content
- post_box_landing
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 post_box_home
element (which, as you might guess, represents the Post Box from the Blog template) as an example, these are the four hooks by default for post_box_home
:
hook_before_post_box_home
(before the opening tag)hook_top_post_box_home
(just after the opening tag)hook_bottom_post_box_home
(just before the closing tag)hook_after_post_box_home
(after the closing tag)
As you can see, right out of the box the Promo Skin provides seventy-two specific hook locations for you to use in its custom.php
file, without requiring you to assign any hook names yourself.