esc_html__('Primary Navigation', 'amity'),
));
add_theme_support('custom-logo', array(
'height' => 50,
'width' => 250,
));
add_theme_support('title-tag');
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
add_image_size('amity-featured-slider', 2000, 500, true);
}
add_action('after_setup_theme', 'amity_main_theme_setup');
}
/*
================================================================================================
3.0 - Custom Widget Initialization
================================================================================================
*/
function amity_custom_widgets_init() {
register_sidebar(array(
'name' => esc_html__( 'Primary Sidebar', 'amity' ),
'id' => 'post-content',
'before_widget' => '',
'before_title' => '
',
));
register_sidebar(array(
'name' => esc_html__( 'Secondary Sidebar', 'amity' ),
'id' => 'page-content',
'before_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => esc_html__( 'Custom Content Sidebar', 'amity' ),
'id' => 'custom-content',
'before_widget' => '',
'before_title' => '',
));
}
add_action('widgets_init', 'amity_custom_widgets_init');
/*
================================================================================================
4.0 - Content Width
================================================================================================
*/
function amity_content_width() {
$GLOBALS['content_width'] = apply_filters( 'amity_content_width', 840 );
}
add_action( 'after_setup_theme', 'amity_content_width', 0 );
/*
================================================================================================
5.0 - Required Files
================================================================================================
*/
require_once(get_template_directory() . '/includes/customizer.php');
require_once(get_template_directory() . '/includes/custom-header.php');