__('Primary Menu', 'blogshining'),
));
add_theme_support(
'html5',
array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'style',
'script',
)
);
// Add theme support for selective refresh for widgets.
add_theme_support('customize-selective-refresh-widgets');
add_theme_support(
'custom-logo',
array(
'height' => 250,
'width' => 250,
'flex-width' => true,
'flex-height' => true,
)
);
/* Custom Background */
$defaults = array(
'default-color' => 'fffff',
'default-image' => get_template_directory_uri() . '/images/default-background-im.png',
);
add_theme_support('custom-background', $defaults);
}
endif;
add_action('after_setup_theme', 'blogshining_setup');
function blogshining_content_width() {
$GLOBALS['content_width'] = apply_filters('blogshining_content_width', 640);
}
add_action('after_setup_theme', 'blogshining_content_width', 0);
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function blogshining_widgets_init() {
register_sidebar(
array(
'name' => esc_html__('Sidebar', 'blogshining'),
'id' => 'sidebar-1',
'description' => esc_html__('Add widgets here.', 'blogshining'),
'before_widget' => '',
'before_title' => '
',
)
);
}
add_action('widgets_init', 'blogshining_widgets_init');
/**
* Enqueue scripts and styles.
*/
function blogshining_scripts() {
wp_enqueue_style('blogshining-style', get_stylesheet_uri(), array(), _S_VERSION);
wp_enqueue_style('bootstrap', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', array(), '4.5.2', 'all');
wp_enqueue_style('font-awesome', get_template_directory_uri() . '/fonts/font-awesome/css/font-awesome.css', array(), '4.7.0', 'all');
wp_enqueue_script('bootstrap', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array('jquery'), '4.5.2', 'all');
wp_enqueue_style('google-font-holtwood', 'https://fonts.googleapis.com/css2?family=Holtwood+One+SC&display=swap', array(), '20200910', 'all');
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'blogshining_scripts');
/*
* Add editor style
*/
add_editor_style("css/style.rtl.css");
/**
* 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';
/**
* Load WooCommerce compatibility file.
*/
if (class_exists('WooCommerce')) {
require get_template_directory() . '/inc/woocommerce.php';
}
/**
* WP Bootstrap NavWalker
*/
require_once get_template_directory() . '/inc/class-wp-bootstrap-navwalker.php';