esc_html__( 'Primary', 'bizpoint' ),
) );
// Switch default core markup to HTML5
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'bizpoint_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
// Add support for core custom logo
add_theme_support( 'custom-logo', array(
'height' => 250,
'width' => 250,
'flex-width' => true,
'flex-height' => true,
) );
}
endif;
add_action( 'after_setup_theme', 'bizpoint_setup' );
// Set content width
function bizpoint_content_width() {
$GLOBALS['content_width'] = apply_filters( 'bizpoint_content_width', 640 );
}
add_action( 'after_setup_theme', 'bizpoint_content_width', 0 );
// Register widget area.
function bizpoint_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'bizpoint' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Add widgets here.', 'bizpoint' ),
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'bizpoint_widgets_init' );
// Enqueue scripts and styles
function bizpoint_scripts() {
wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'bizpoint-fonts', '//fonts.googleapis.com/css?family=Montserrat:500,600' );
wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), 'v4.0.0-beta', 'all' );
wp_enqueue_style( 'bizpoint-style', get_stylesheet_uri() );
wp_enqueue_script( 'bizpoint-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
wp_enqueue_script( 'bizpoint-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'bizpoint_scripts' );
// Implement the Custom Header feature
require get_template_directory() . '/inc/custom-header.php';
// Custom template tags for this theme.
require get_template_directory() . '/inc/template-tags.php';
// Functions which enhance the theme by hooking into WordPress.
require get_template_directory() . '/inc/template-functions.php';
// Include kirki toolkit helper
require get_template_directory() . '/inc/kirki/include-kirki.php';
require get_template_directory() . '/inc/tgmpa/tgm-plugins.php';
require get_template_directory() . '/inc/kirki/bizpoint-kirki.php';
// Customizer additions.
require get_template_directory() . '/inc/customizer.php';
// Customizer settings
require_once get_template_directory() . '/inc/customizer/settings.php';
// Load Jetpack compatibility file.
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php';
}
// Load WooCommerce compatibility file.
if ( class_exists( 'WooCommerce' ) ) {
require get_template_directory() . '/inc/woocommerce.php';
}