Focus Action Hooks

Hooks enable you to use PHP code to add anything you want to your pages. You’ll find 4 different types of hooks in Focus:

  • $hook — Basic hooks
  • $hook — Core WordPress Theme hooks
  • $hook — Container hooks, which are 4 hooks in 1:
    • hook_before_$hook
    • hook_top_$hook
    • hook_bottom_$hook
    • hook_after_$hook
  • $hook — Specialized content hooks, where [type] is post_box, post_list, post_content, or query_box:
    • hook_before_[type]_$hook
    • hook_top_[type]_$hook
    • hook_bottom_[type]_$hook
    • hook_after_[type]_$hook

Document Head <head>

  • hook_head_top
  • hook_before_stylesheet — before Focus CSS
  • hook_after_stylesheet — after Focus CSS
  • hook_head_bottom
    • wp_head

Document Body <body>

  • hook_top_body
  • section_header
    • header
  • section_content
    • columns
      • content
        • post_box_blog — Blog, Archives
        • post_list_blog — Blog, Archives
        • post_box_post — Single
        • post_box_page — Page, 404, Full Page, Landing Page
        • post_box_front — Front Page
        • post_box_focus — Focus Page
          • headline_area (Blog, Single, Page, Front Page, and Focus)
            • byline (Blog, Single, Page, Front Page, and Focus)
        • prev_next — Blog, Archives
      • sidebar (Readability Mode + Sidebar only)
  • section_footer
    • footer
  • hook_bottom_body
    • wp_footer