get_template_directory_uri() .'/assets/images/blog-banner.jpg', 'width' => 1920, 'height' => 540, 'uploads' => true, ); add_theme_support( 'custom-header', $defaults ); // Menus register_nav_menus( array( 'primary' => esc_html__('Primary Menu', 'hostby'), ) ); // add excerpt support for pages add_post_type_support( 'page', 'excerpt' ); if ( is_singular() && comments_open() ) { wp_enqueue_script( 'comment-reply' ); } // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // To use additional css add_editor_style( 'assets/css/editor-style.css' ); } add_action( 'after_setup_theme', 'hostby_theme_setup' ); } // Register Nav Walker class_alias require_once('class-wp-bootstrap-navwalker.php'); /** * Enqueue CSS stylesheets */ if( ! function_exists( 'hostby_enqueue_styles' ) ) { function hostby_enqueue_styles() { wp_enqueue_style('hostby-font', 'https://fonts.googleapis.com/css?family=Nunito:300,400,600,700,800'); wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css'); wp_enqueue_style('font-awesome', get_template_directory_uri() .'/assets/css/font-awesome.css'); wp_enqueue_style('carousel', get_template_directory_uri() .'/assets/css/owl.carousel.css'); wp_enqueue_style('hostby-theme', get_template_directory_uri() .'/assets/css/owl.theme.default.css'); wp_enqueue_style('animate', get_template_directory_uri() .'/assets/css/animate.css'); wp_enqueue_style('menubar', get_template_directory_uri() . '/assets/css/menubar.css'); // main style wp_enqueue_style( 'hostby-style', get_stylesheet_uri() ); wp_enqueue_style('hostby-blue', get_template_directory_uri() . '/assets/css/skin-blue.css'); wp_enqueue_style('responsive', get_template_directory_uri() .'/assets/css/responsive.css'); } add_action( 'wp_enqueue_scripts', 'hostby_enqueue_styles'); } /** * Enqueue JS scripts */ if( ! function_exists( 'hostby_enqueue_scripts' ) ) { function hostby_enqueue_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('popper', get_template_directory_uri() . '/assets/js/popper.js',array(),'', true); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.js',array(),'', true); wp_enqueue_script('carousel', get_template_directory_uri() . '/assets/js/owl.carousel.js',array(),'', true); wp_enqueue_script('imagesloaded', get_template_directory_uri() . '/assets/js/imagesloaded.js',array(),'', true); wp_enqueue_script('isotope', get_template_directory_uri() . '/assets/js/isotope.js',array(),'', true); wp_enqueue_script('poptrox', get_template_directory_uri() . '/assets/js/jquery.poptrox.js',array(),'', true); wp_enqueue_script('hostby-custom', get_template_directory_uri() . '/assets/js/custom.js',array(),'', true); } add_action( 'wp_enqueue_scripts', 'hostby_enqueue_scripts' ); } /** * Register sidebars for hostby */ function hostby_sidebars() { // Blog Sidebar register_sidebar(array( 'name' => esc_html__( 'Blog Sidebar', "hostby"), 'id' => 'blog-sidebar', 'description' => esc_html__( 'Sidebar on the blog layout.', "hostby"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); // Footer Sidebar register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 1', "hostby"), 'id' => 'hostby-footer-widget-area-1', 'description' => esc_html__( 'The footer widget area 1', "hostby"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 2', "hostby"), 'id' => 'hostby-footer-widget-area-2', 'description' => esc_html__( 'The footer widget area 2', "hostby"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 3', "hostby"), 'id' => 'hostby-footer-widget-area-3', 'description' => esc_html__( 'The footer widget area 3', "hostby"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 4', "hostby"), 'id' => 'hostby-footer-widget-area-4', 'description' => esc_html__( 'The footer widget area 4', "hostby"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'hostby_sidebars' ); /** * Comment layout */ function hostby_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
id=""> comment_approved == '0') : ?>

$depth, 'max_depth' => $args['max_depth']))) ?>

'; return $form; } endif; add_filter( 'get_search_form', 'hostby_customize_search_form', 15 ); ?>