Back to Index

Theme Hooks

This theme is developed to be a starter theme for your projects. Based on it, you can create a complete website for your client or your new theme with a solid starting point. So, we tried to provide the theme with hooks so that you can easily change some parts of it for your needs.

You will find the hooked functions in the ../inc/template-functions.php file.

In addition, you can change the results of some theme functions use filters. Examples of such filters can be found in the file/functions.php (line 299), and uncomment to apply.

Here’s a list of a few theme hooks:

do_action('underboot_branding_menu'); /* hooked underboot_site_branding - displays site branding */
Code language: JavaScript (javascript)
do_action('underboot_primary_menu'); /* hooked underboot_main_menu - displays primary menu */
Code language: JavaScript (javascript)
apply_filters( 'underboot_add_navbar_items', $items ); /* appends additional items to the menu bar - a sample of adding a filter is in the file functions.php */
Code language: PHP (php)
apply_filters('underboot_content_wrapper_start',$content_wrapper); /* Print start part of wrapper markup for site content */
Code language: PHP (php)
apply_filters('underboot_content_wrapper_end',$content_wrapper); /* Print end part of wrapper markup for site content */
Code language: PHP (php)
do_action( 'underboot_article_start' ); /* immediately after the <article> tag in the page (single post) layout */
Code language: JavaScript (javascript)
do_action( 'underboot_header_before' ); /* in the page (single post) layout before the header tag */
Code language: JavaScript (javascript)
do_action( 'underboot_article_end' ); /* before the closes tag </article> in the page (single post) layout */
Code language: JavaScript (javascript)
do_action('underboot_footer'); /* immediately after the <footer> tag in the site footer template part */
Code language: JavaScript (javascript)