esc_html__( 'Main menu', 'bulk' ), ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 300, 300, true ); add_image_size( 'bulk-single', 1170, 460, true ); // Add Custom Background Support. $args = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $args ); add_theme_support( 'custom-logo', array( 'height' => 70, 'width' => 200, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); // Adds RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); // WooCommerce support. add_theme_support( 'woocommerce' ); // Recommend plugins. add_theme_support( 'recommend-plugins', array( 'elementor' => array( 'name' => esc_html__( 'Elementor', 'bulk' ), 'active_filename' => 'elementor/elementor.php', /* translators: %1$s "Elementor Page Builder" plugin name string */ 'description' => sprintf( esc_attr__( 'To take full advantage of all the features this theme has to offer, please install and activate the %s plugin.', 'bulk' ), 'Elementor Page Builder' ), ), ) ); add_theme_support( 'custom-header', apply_filters( 'bulk_setup_args', array( 'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ), 'width' => 2000, 'height' => 1200, 'flex-height' => true, 'video' => false, ) ) ); } endif; /** * Set Content Width */ function bulk_content_width() { $GLOBALS['content_width'] = apply_filters( 'bulk_content_width', 1170 ); } add_action( 'after_setup_theme', 'bulk_content_width', 0 ); /** * Register custom fonts. */ function bulk_fonts_url() { $fonts_url = ''; /** * Translators: If there are characters in your language that are not * supported by Libre Franklin, translate this to 'off'. Do not translate * into your own language. */ $libre_franklin = _x( 'on', 'Roboto Condensed font: on or off', 'bulk' ); if ( 'off' !== $libre_franklin ) { $font_families = array(); $font_families[] = 'Roboto Condensed:300,300i,400,400i,600,600i,800,800i'; $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } /** * Enqueue Styles (normal style.css and bootstrap.css) */ function bulk_theme_stylesheets() { // Add custom fonts, used in the main stylesheet. wp_enqueue_style( 'bulk-fonts', bulk_fonts_url(), array(), null ); wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.7' ); // Theme stylesheet. wp_enqueue_style( 'bulk-stylesheet', get_stylesheet_uri() ); // load Font Awesome css wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.7.0' ); } add_action( 'wp_enqueue_scripts', 'bulk_theme_stylesheets' ); /** * Register Bootstrap JS with jquery */ function bulk_theme_js() { wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '3.3.7', true ); wp_enqueue_script( 'bulk-theme-js', get_template_directory_uri() . '/js/customscript.js', array( 'jquery' ), '1.0.8', true ); } add_action( 'wp_enqueue_scripts', 'bulk_theme_js' ); /** * Register Custom Navigation Walker include custom menu widget to use walkerclass */ require_once( trailingslashit( get_template_directory() ) . 'lib/wp_bootstrap_navwalker.php' ); /** * Register Custom Metaboxes */ require_once( trailingslashit( get_template_directory() ) . 'lib/metaboxes.php' ); /** * Register Theme Info Page */ require_once( trailingslashit( get_template_directory() ) . 'lib/dashboard.php' ); /** * Register PRO notify */ require_once( trailingslashit( get_template_directory() ) . 'lib/customizer.php' ); add_action( 'widgets_init', 'bulk_widgets_init' ); /** * Register the Sidebar(s) */ function bulk_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Right sidebar', 'bulk' ), 'id' => 'bulk-right-sidebar', 'before_widget' => '
', 'before_title' => '