Section / Hook LabelHook NameHooked FunctionsPriority
Start Wrap Container
Before Wrap Containerbioship_before_container
Wrap Container Openbioship_container_openbioship_skeleton_wrapper_open5
Header
Before Header Areabioship_before_headerbioship_skeleton_top_banner
bioship_skeleton_secondary_menu
2
8
Main Headerbioship_headerbioship_skeleton_header_open
bioship_skeleton_header_nav
bioship_skeleton_echo_clear_div
bioship_skeleton_header_logo
bioship_skeleton_header_widgets
bioship_skeleton_header_extras
bioship_skeleton_header_close
0
2
3
4
6
8
10
Before Header Widgetsbioship_before_header_widgets
Header Widget Area Templatebioship_header_sidebar
After Header Widgetsbioship_after_header_widgets
After Header Areabioship_after_headerbioship_skeleton_header_banner5
Navigation Bar
Before Main NavBarbioship_before_navbar
Main Navigation Barbioship_navbarbioship_skeleton_main_menu_open
bioship_skeleton_main_menu
bioship_skeleton_sidebar_button
bioship_skeleton_main_menu_button
bioship_skeleton_subsidebar_button
bioship_skeleton_main_menu_close
0
2
4
6
8
10
After Main NavBarbioship_after_navbarbioship_skeleton_echo_clear_div
bioship_skeleton_navbar_banner
8
4
Primary Sidebar
Before Primary Sidebarbioship_before_sidebarbioship_skeleton_sidebar_open5
Sidebar Widget Templatebioship_sidebar
After Primary Sidebarbioship_after_sidebarbioship_skeleton_sidebar_close5
Subsidiary Sidebar
Before Subsidiary Sidebarbioship_before_subsidebarbioship_skeleton_subsidebar_open5
SubSidebar Widget Templatebioship_subsidebar
After Subsidiary Sidebarbioship_after_subsidebarbioship_skeleton_subsidebar_close5
Start Content Area
Before Content Areabioship_before_contentbioship_skeleton_content_open10
Frontpage Only Topbioship_front_page_topbioship_skeleton_front_page_content5
Home (Blog) Only Topbioship_home_page_topbioship_skeleton_home_page_content5
Before Any Loopbioship_before_loopbioship_skeleton_breadcrumbs5
Before Any Archive Loopbioship_before_archive
Before Category Archive Loopbioship_before_category
Before Taxonomy Archive Loopbioship_before_taxonomy
Before Tag Archive Loopbioship_before_tags
Before Author Archive Loopbioship_before_authorbioship_skeleton_author_bio_top5
Before Date Archive Loopbioship_before_date
Start Entry Loop
Before Entrybioship_before_entry
Media Handler Actionbioship_media_handlerbioship_skeleton_media_handler5
Entry Header Hookbioship_entry_headerbioship_skeleton_entry_header_open
bioship_skeleton_entry_header_title
bioship_skeleton_entry_header_subtitle
bioship_skeleton_entry_header_meta
bioship_skeleton_entry_header_close
0
2
4
6
10
Thumbnail or Featured Imagebioship_thumbnailbioship_skeleton_echo_thumbnail5
Before Thumbnail *bioship_before_thumbnail
Thumbnailbioship_echo_thumbnail
After Thumbnail *bioship_after_thumbnail
Post Excerpts
Before Excerptbioship_before_excerpt
Main Excerptbioship_the_excerptbioship_skeleton_echo_the_excerpt5
Excerpt Contentbioship_excerpt
After Excerptbioship_after_excerpt
Entry Footerbioship_entry_footerbioship_skeleton_entry_footer_open
bioship_skeleton_entry_footer_meta
bioship_skeleton_entry_footer_close
0
6
10
Singular Content
Breadcrumbsbioship_before_singularbioship_skeleton_breadcrumbs5
Author Bio Top Positionbioship_author_bio_top
Before Author Bio *bioship_before_author_bio
Author Bio Contentbioship_author_bio
After Author Bio *bioship_after_author_bio
Before the Contentbioship_before_the_content
Main Contentbioship_the_contentbioship_skeleton_echo_the_content5
Main Contentbioship_content
After the Contentbioship_after_the_content
Author Bio Bottom Positionbioship_author_bio_bottom
After Singular Contentbioship_after_singular
Before Commentsbioship_before_comments
Comment Contentbioship_comments
After Commentsbioship_after_comments
End Entry Loop
After Entrybioship_after_entry
Page Navigationbioship_page_navibioship_skeleton_page_navigation5
After Date Archive Loopbioship_after_date
After Author Archive Loopbioship_after_authorbioship_skeleton_author_bio_bottom5
After Tag Archive Loopbioship_after_tags
After Taxonomy Archive Loopbioship_after_taxonomy
After Category Archive Loopbioship_after_category
After Any Archive Loopbioship_after_archive
After Any Loopbioship_after_loop
Frontpage Only Topbioship_front_page_bottombioship_skeleton_front_page_footnote5
Home (Blog) Only Topbioship_home_page_bottomskeleton_home_page_footnote5
After Contentbioship_after_contentbioship_skeleton_content_close
bioship_skeleton_echo_clear_div
0
2
Footer
Before Footerbioship_before_footerbioship_skeleton_footer_banner
bioship_skeleton_echo_clear_div
5
10
Main Footerbioship_footerbioship_skeleton_footer_open
bioship_skeleton_footer_extras
bioship_skeleton_footer_widgets
bioship_skeleton_footer_nav
bioship_skeleton_footer_credits
bioship_skeleton_footer_close
0
2
4
6
8
10
Before Footer Widgetbioship_before_footer_widgets
Footer Widget Area Templatebioship_footer_widgets
After Footer Widgetbioship_after_footer_widgets
After Footerbioship_after_footerbioship_skeleton_bottom_banner5
End Wrap Container
Main Container Closebioship_container_closebioship_skeleton_wrapper_close5
After Wrap Containerbioship_after_container

Hybrid Hook

All hooks are automatically made available to the Hybrid Hook plugin (modified for BioShip.) When activated (via Theme Options -> Skeleton -> Hybrid) you can access Appearance -> Hybrid Hook. This allows you to easily add content (Text, HTML, or Shortcode) to any of the Layout Hook sections. (You can also specify a priority if you need to insert between existing hooked functions.)

Manually Adding Functions

You can of course simply add your own functions to any of the available hooks with a few lines of code, in the form:
add_action('{hook_name}', '{function_name}', {priority});

For example, to add a simple welcome message:
add_action('bioship_after_header', 'custom_after_header_function', 5);
function custom_after_header_function() {echo 'Welcome!';}

Or for an existing shortcode function called welcome_shortcode:
add_action('bioship_after_header', 'custom_welcome_shortcode', 5);
function custom_welcome_shortcode() {echo do_shortcode('[welcome_shortcode']);}

Reordering Layout Functions

If something is hooked in the wrong position for your desired layout, you can change it's position with a filter.
Priority filters have the same name as the function appended with _position:
add_filter('bioship_header_widgets_position', 'custom_header_widgets_position');
function custom_header_widgets_position() {return 2;}

OR more directly with an anonymous function:
add_filter('bioship_header_widgets_position', function(){return 2;} );

Removing Layout Functions

If you change the hooked function priority via filter to -1 and it will not be added. eg.
add_filter('bioship_header_widgets_position', function(){return -1;} );

You can also remove any of the hooked functions you can do so using bioship_remove_action
This is a wrapper for WordPress remove_action with the filtered priority calculated automatically.
bioship_remove_action('bioship_header', 'bioship_header_widgets');

Note: while you can do the same manually without using bioship_remove_action you would need to
delay the removal until after the action has been added or it will not actually be removed.
Practically speaking, this means wrapping in a further check in your functions.php eg.
add_action('init', 'custom_layout_femovals');
function custom_layout_removals() {
	remove_action('bioship_header', 'bioship_header_widgets', 6);
}

Replacing Layout Functions

If something is hooked in the wrong section for your desired layout, you can remove it and reinsert it.
Note again you would need to delay the removal or use bioship_remove_action which auto-delays for you.
bioship_remove_action('bioship_header', 'bioship_header_widgets');
add_action('bioship_navbar', 'bioship_header_widgets', 2);

Header / Footer Extra HTML

You can also add extra HTML to the Header / Footer HTML sections using filters.
These are throwbacks from a previous implementation but are still available for use.
Filters: bioship_header_html_extras and bioship_footer_html_extras, eg:
add_filter('bioship_header_html_extra', 'custom_header_html_extras');
function custom_header_html_extras() {return '<div>Div Content</div>';}
← Previous: Responsive Grid SystemBack to Documentation Index

Leave a Reply

Your email address will not be published. Required fields are marked *


*