List of Genesis Hooks & Visual Map

9 Flares Twitter 3 Facebook 0 Google+ 3 LinkedIn 1 Pin It Share 1 StumbleUpon 1 Buffer 0 Buffer 9 Flares ×

WordPress Hooks

wp_head 

This hook executes immediately before the closing </head> tag.

wp_footer 

This hook executes immediately before the closing </body> tag.

Document Hooks

genesis_title 

This hook executes between the main document <title></title> tags.

genesis_meta 

This hook executes in the document <head>. It is commonly used to output META information about the document.

genesis_before 

This hook executes immediately after the opening <body> tag.

genesis_after 

This hook executes immediately before the closing </body> tag.

Header Hooks

genesis_before_header 

This hook executes immediately before the header (outside the #header div).

genesis_header 

This hook outputs the default header (the #header div)

genesis_after_header 

This hook executes immediately after the header (outside the #header div).

Content Hooks

genesis_before_content_sidebar_wrap 

This hook executes immediately before the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).

genesis_after_content_sidebar_wrap 

This hook executes immediately after the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).

genesis_before_content 

This hook executes immediately before the content column (outside the #content div).

genesis_after_content 

This hook executes immediately after the content column (outside the #content div).

Loop Hooks

genesis_before_loop

This hook executes immediately before all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.

genesis_loop 

This hook executes both default and custom loops.

genesis_after_loop 

This hook executes immediately after all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.

genesis_after_endwhile 

This hook executes after the endwhile; statement.

genesis_loop_else 

This hook executes after the else : statement in all loop blocks. The content attached to this hook will only display if there are no posts available when a loop is executed.

Post/Page Hooks

genesis_before_post 

This hook executes before each post in all loop blocks (outside the post_class() div).

genesis_after_post 

This hook executes after each post in all loop blocks (outside the post_class() div).

genesis_before_post_title 

This hook executes immediately before each post/page title within the loop.
genesis_post_title 

This hook outputs the post/page title.

genesis_after_post_title 

This hook executes immediately after each post/page title within the loop.

genesis_before_post_content 

This hook executes immediately before the genesis_post_content hook for each post/page within the loop.

genesis_post_content 

This hook outputs the content of the post/page, by default.

genesis_after_post_content

This hook executes immediately after the genesis_post_content hook for each post/page within the loop.

Comment List Hooks

genesis_before_comments

This hook executes immediately before the comments block (outside the #comments div).

genesis_comments

This hook outputs the comments block, including the #comments div.

genesis_list_comments

This hook executes inside the comments block, inside the .comment-list OL. By default, it outputs a list of comments associated with a post via the genesis_default_list_comments() function.

genesis_after_comments

This hook executes immediately after the comments block (outside the #comments div).

Ping List Hooks

genesis_before_pings 

This hook executes immediately before the pings block (outside the #pings div).

genesis_pings

This hook outputs the pings block, including the #pings div.

genesis_list_pings

This hook executes inside the pings block, inside the .ping-list OL. By default, it outputs a list of pings associated with a post via the genesis_default_list_pings() function.

genesis_after_pings 

This hook executes immediately after the pings block (outside the #pings div).

Single Comment Hooks

genesis_before_comment 

This hook executes immediately before each individual comment (inside the .comment list item).

genesis_after_comment 

This hook executes immediately after each individual comment (inside the .comment list item).

Comment Form Hooks

genesis_before_comment_form 

This hook executes immediately before the comment form, outside the #respond div.

genesis_comment_form 

This hook outputs the entire comment form, including the #respond div.

genesis_after_comment_form 

This hook executes immediately after the comment form, outside the #respond div.

Sidebar Hooks

genesis_before_sidebar 

This hook executes immediately before the primary sidebar column (outside the #sidebar div).

genesis_sidebar 

This hook outputs the content of the primary sidebar, including the widget area output.
genesis_after_sidebar 

This hook executes immediately after the primary sidebar column (outside the #sidebar div).

genesis_before_sidebar_widget_area 

This hook executes immediately before the primary sidebar widget area (inside the #sidebar div).

genesis_after_sidebar_widget_area

This hook executes immediately after the primary sidebar widget area (inside the #sidebar div).

genesis_before_sidebar_alt 

This hook executes immediately before the alternate sidebar column (outside the #sidebar-alt div).

genesis_sidebar_alt

This hook outputs the content of the secondary sidebar, including the widget area output.

genesis_after_sidebar_alt 

This hook executes immediately after the alternate sidebar column (outside the #sidebar-alt div).

genesis_before_sidebar_alt_widget_area

This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div).

genesis_after_sidebar_alt_widget_area 

This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div).

Footer Hooks

genesis_before_footer 

This hook executes immediately before the footer (outside the #footer div).

genesis_footer 

This hook, by default, outputs the content of the footer (inside the #footer div).

genesis_after_footer

This hook executes immediately after the footer (outside the #footer div).

Thanks to Nathan Rice for creating the Genesis Simple Hooks plugin for WordPress which works on all StudioPress themes that run on the Genesis framework.

Visual Hook Map

Click Image To Enlarge

hooks in Genesis

Using Hooks In Functions

Here’s a beginners guide to using hooks in custom functions in your child themes functions.php file.

9 Flares Twitter 3 Facebook 0 Google+ 3 LinkedIn 1 Pin It Share 1 StumbleUpon 1 Buffer 0 Buffer 9 Flares ×
Brad Dalton

Brad Dalton

WordPress Consultant 110+ Hrs/Week, traveler and lover of big surf, making new friends & my family. Read more about Brad Dalton or contact me if you need help with WordPress.
Brad Dalton

@wpsitesdotnet

Howdy! WP Sites creates daily tips & tutorials providing solutions for WordPress users.
Remove Comments From Specific Posts and Different Categories http://t.co/KhQwuWAlD3 - 11 hours ago
Brad Dalton

Never Miss The Latest Design Tips!

Speak Your Mind

*

Need A Solution for WordPress?

solutions for wordpress
WP Sites offers new posts & 900+ existing tutorials which include:

  1. 1. The basics on using WordPress to build & design a website
  2. 2. Tested PHP & CSS code snippets for easy customization of your theme
  3. 3. Tips, tricks & idea's on how to solve problems with WordPress

 
Enter your email address below & click "Get Updates!"