Functions

Functions and Hooks

Function Name Argument(s) Utility
bcb_main_nav(); Parameter 1: [string] (optional) adds class to the navbar ul element
Default:
'ms-auto'
Outputs WordPress ‘Main Menu’ if checked
bcb_aux_nav(); Parameter 1: [string] (optional) adds class to the navbar ul element
Default:
'ms-auto'
Outputs WordPress ‘Auxiliary Menu’ if checked
bcb_image_id(); None Outputs WordPress featured image id
bcb_image_url(); Parameter 1: [integer] requires image id
Parameter 2:
[string] (optional) accepts WordPress crop sizes

  • thumbnail
  • medium
  • medium_large
  • large
  • full
Outputs image url
bcb_image_alt(); Parameter 1: [integer] requires image id Outputs image alternate text
bcb_icon(); Parameter 1: [string] requires icon name or class
Parameter 2:
[integer] (optional) adjust size
Outputs Bootstrap Icon
bcb_check_template_name(); Parameter 1: [string] requires name of the template file Checks name of template file
bcb_search_form(); Parameter 1: [string] (optional) adds class to the seach form container Outputs search form
bcb_pagination(); None Outputs post pagination
bcb_before_footer(); Hook Outputs before footer tag
bcb_before_navbar(); Hook Outputs before main navbar
bcb_after_navbar(); Hook Outputs after main navbar