Developer Documentation

Theme Action Hooks

Below is a list of all the theme action hooks. NOTE: This doesn’t include WooCommerce/BBPress hooks.

Main Structure

sf_before_page_container
Before the page container ( #container )


sf_container_start
Within the page container, before the main content ( #main-container )


sf_main_container_start
Within #main-container (start)


sf_main_container_end
Within #main-container (end)


sf_container_end
Within the page container, after the main content ( #main-container )


sf_footer_wrap_after
After the footer wrap


sf_after_page_container
After the page container ( #container )


sf_before_sidebar
Within the sidebar, before the widgets


sf_after_sidebar
Within the sidebar, after the widgets

Post Specific Hooks


sf_post_before_article
Before the article wrap


sf_post_article_start
At the start of the article wrap


sf_before_post_content
Before the post content wrap


sf_post_content_start
Directly before the post content


sf_post_content_end
Within the post content wrap, at the end


sf_after_post_content
After the post content wrap


sf_post_article_end
At the end of the article wrap


sf_post_after_article
After the article wrap (within .article-extras)


sf_post_before_left_sidebar
Within the left sidebar, before the widgets


sf_post_after_left_sidebar
Within the sidebar, after the widgets


sf_post_before_right_sidebar
Within the right sidebar, before the widgets


sf_post_after_right_sidebar
Within the right sidebar, after the widgets

Portfolio Specific Hooks


sf_portfolio_before_article
Before the portfolio article wrap


sf_portfolio_article_start
At the start of the portfolio article wrap


sf_before_portfolio_content
Before the portfolio content wrap


sf_after_portfolio_content
After the portfolio content wrap


sf_portfolio_article_end
At the end of the portfolio article wrap


sf_portfolio_after_article
After the portfolio article wrap

Team Specific Hooks


sf_team_before_article
Before the team article wrap


sf_team_article_start
At the start of the team article wrap


sf_before_team_content
Before the team content wrap


sf_after_team_content
After the team content wrap


sf_team_article_end
At the end of the team article wrap


sf_team_after_article
After the team article wrap

Gallery Specific Hooks


sf_gallery_before_article
Before the gallery article wrap


sf_gallery_article_start
At the start of the gallery article wrap


sf_before_gallery_content
Before the gallery content wrap


sf_after_gallery_content
After the gallery content wrap


sf_gallery_article_end
At the end of the gallery article wrap


sf_gallery_after_article
After the gallery article wrap

Campaign Specific Hooks


sf_campaign_article_start
At the start of the campaign article wrap


sf_before_campaign_content
Before the campaign content wrap


sf_campaign_content_start
Before the campaign content


sf_campaign_content_end
Before the campaign content


sf_after_campaign_content
After the campaign content wrap


sf_campaign_article_end
At the end of the campaign article wrap


sf_campaign_after_article
After the campaign article wrap

Directory Specific Hooks


sf_directory_article_start
At the start of the directory article wrap


sf_before_directory_content
Before the directory content wrap


sf_directory_content_start
Directly before the directory content


sf_directory_content_end
After the directory content/map


sf_after_directory_content
After the directory content wrap


sf_directory_article_end
At the end of the directory article wrap


sf_directory_after_article
After the directory article wrap