Primary Framework Action Hooks

After you’ve got the the concept of action hooks down, you can really begin to dive into the possibilities of what you can accomplish from your Child theme. In this article, you’ll find a quick overview of the framework’s primary action hooks.

This article doesn’t include all action hooks, but includes all of the primary action hooks that setup the main visual design of the framework’s HTML markup.

Actions Map

Actions Overview

Before and after site

  • themeblvd_before
    - Description: Before the site just after the opening body tag.
    - No default hooked function by framework
  • themeblvd_after
    - Description: After the site just before the closing body tag.
    - No default hooked function by framework

Header

  • themeblvd_header_before
    - Description: Before any HTML markup for header is outputted.
    - No default hooked function by framework
  • themeblvd_header_top
    - Description: The highest location in the header.
    - No default hooked function by framework
  • themeblvd_header_above
    - Description: Location above logo, but below themeblvd_header_top.
    - Default function: themeblvd_header_above_default
  • themeblvd_header_content
    - Description: Main content area of the header, default function calls themeblvd_header_logo and themeblvd_header_addon here.
    - Default function: themeblvd_header_content_default
  • themeblvd_header_logo
    - Description: Website logo, called in themeblvd_header_content by default.
    - Default function: themeblvd_header_logo_default
  • themeblvd_header_addon
    - Description: Additional area within default themeblvd_header_content.
    - No default hooked function by framework
  • themeblvd_header_menu
    - Description: Main menu below content of header.
    - Default function: themeblvd_header_menu_default
  • themeblvd_header_menu_addon
    - Description: Adds to default themeblvd_header_menu.
    - No default hooked function by framework
  • themeblvd_header_after
    - Description: After all HTML markup for header is outputted.
    - No default hooked function by framework

Featured area

  • themeblvd_featured_start
    - Description: Start HTML markup for featured area.
    - Default function: themeblvd_featured_start_default
  • themeblvd_featured
    - Description: Any featured content
    - No default hooked function by framework
  • themeblvd_featured_end
    - Description: End HTML markup for featured area.
    - Default function: themeblvd_featured_end_default
Note: Hooking onto “themeblvd_featured” can be a little tricky. See the article, Hooking to the “Featured Area”.

Main content area

  • themeblvd_main_start
    - Description: Start HTML markup for main area.
    - Default function: themeblvd_main_start_default
  • themeblvd_main_top
    - Description: Top of main area, default displays “ad_above_content” widget area.
    - Default function: themeblvd_main_top_default
  • themeblvd_main_bottom
    - Description: Bottom of main area, default displays “ad_below_content” widget area.
    - Default function: themeblvd_main_bottom_default
  • themeblvd_main_end
    - Description: End HTML markup for main area.
    - Default function: themeblvd_main_end_default
  • themeblvd_breadcrumbs
    - Description: Breadcrumbs, called after themeblvd_main_top.
    - Default function: themeblvd_breadcrumbs_default
  • themeblvd_before_layout
    - Description: Your last chance to add any content before content and sidebars.
    - No default hooked function by framework
  • themeblvd_sidebars
    - Description: The functionality of pulling the proper dynamic sidebar based on the right or left side, the user’s current sidebar layout, and any custom sidebars happen here.
    - Default function: themeblvd_fixed_sidebars
  • themeblvd_fixed_sidebar_before
    - Description: HTML markup that starts the wrapping of fixed sidebars.
    - Default function: themeblvd_fixed_sidebar_before_default
  • themeblvd_fixed_sidebar_after
    - Description: HTML markup that ends the wrapping of fixed sidebars.
    - Default function: themeblvd_fixed_sidebar_after_default

Featured Below area

  • themeblvd_featured_below_start
    - Description: Start HTML markup for featured below area.
    - Default function: themeblvd_featured_below_start_default
  • themeblvd_featured_below
    - Description: Any featured below content
    - No default hooked function by framework
  • themeblvd_featured_below_end
    - Description: End HTML markup for featured below area.
    - Default function: themeblvd_featured_below_end_default
Note: Hooking onto “themeblvd_featured_below” can be a little tricky. See the article, Hooking to the “Featured Area”.

Footer

  • themeblvd_footer_before
    - Description: Before any HTML markup for footer is outputted.
    - No default hooked function by framework
  • themeblvd_footer_above
    - Description: Before footer starts.
    - No default hooked function by framework
  • themeblvd_footer_content
    - Description: Primary content area of footer, default holds dymanically setup columns from Theme Options.
    - Default function: themeblvd_footer_content_default
  • themeblvd_footer_sub_content
    - Description: Area for copyright info.
    - Default function: themeblvd_footer_sub_content_default
  • themeblvd_footer_below
    - Description: Bottom of footer area, default displays “ad_below_footer” widget area.
    - Default function: themeblvd_footer_below_default
  • themeblvd_footer_after
    - Description: After all HTML markup for footer is outputted.
    - No default hooked function by framework

Content

  • themeblvd_content_top
    - Description: Top of content area.
    - No default hooked function by framework
  • themeblvd_blog_meta
    - Description: Meta info for blog post.
    - Default function: themeblvd_blog_meta_default
  • themeblvd_blog_tags
    - Description: Tags for blog post.
    - Default function: themeblvd_blog_tags_default
  • themeblvd_the_post_thumbnail
    - Description: The post thumbnail for posts. We’d really suggest not messing with this one. :)
    - Default function: themeblvd_the_post_thumbnail_default
  • themeblvd_blog_content
    - Description: Shows content area of post in blogroll.
    - Default function: themeblvd_blog_content_default

Locating Default Hooked Functions

If you checkout the framework’s primary functions file that fires everything off to start, you can see where all default functions are hooked onto various framework actions.

/framework/themeblvd.php

Note: This is just a sample screenshot (taken with framework version 2.2.0) to give you the gist of what’s happening in that file; this file will inevitably change over time as far as what actions and default functions are hooked.

Most of these types of functions you see named in the format themeblvd_{action_name}_default, can be found within the following file of the framework.

/framework/frontend/functions/display.php

When making edits to the functionality of default hooked functions, it’s best to un-hook the framework’s function and then hook on your own function its place (see theoretical example).

Conversely, if you do want to just edit one of the functions that’s already hooked, you can do that by following the instructions in the article, Editing Framework Functions.