Bizznis uses set of features that must be defined prior to usage. Theme supported functions should be called in the child theme’s functions.php
file to work.
Add Theme Support
In order for some theme features to work, you need to specifically define support for them. All theme supported functions are by default defined inside lib / init.php
file.
Navigation Menus
add_theme_support( 'bizznis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'bizznis' ), 'secondary' => __( 'Secondary Navigation Menu', 'bizznis' ), ) );
Custom Header
add_theme_support( 'custom-header', array( 'width' => 320, 'flex-width' => true, 'height' => 80, 'flex-height' => true, 'default-text-color' => '333333', 'header-selector' => '.title-area', 'header-selector' => '.site-header', 'text-selectors' => '.custom-header .header-content', 'background-size' => 'cover', 'default-image' => '', ) );
Custom Background
add_theme_support( 'custom-background', array( 'default-color' => 'f9f8f2', 'default-image' => CHILD_URL. '/background.png', ) );
Accessibility
add_theme_support( 'bizznis-accessibility', array( 'skip-links', 'search-form', 'drop-down-menu', 'headings', 'rems' ) );
Responsive Menu
add_theme_support( 'bizznis-responsive-menu' );
Remove Theme Support
By default, there are many theme supported functions, which you may easily disable. All theme supported functions are by default defined inside lib / init.php
file.
remove_theme_support( 'bizznis-inpost-layouts' ); remove_theme_support( 'bizznis-archive-layouts' ); remove_theme_support( 'bizznis-admin-menu' ); remove_theme_support( 'bizznis-seo-settings-menu' ); remove_theme_support( 'bizznis-tools-settings-menu' ); remove_theme_support( 'bizznis-auto-updates' ); remove_theme_support( 'bizznis-breadcrumbs' ); remove_theme_support( 'bizznis-responsive-viewport' ); #html5