'ffffff',
) );
//Support for custom header settings
add_theme_support( 'custom-header', array(
'default-image' => get_template_directory_uri() . '/assets/images/header.jpg',
'random-default' => false,
'width' => 1920,
'height' => 960,
'flex-height' => false,
'flex-width' => false,
'header-text' => false,
'uploads' => true,
) );
// Adds RSS feed in head
add_theme_support( 'automatic-feed-links' );
// Make core WordPress makup output valid HTML5
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
//
tag provided by WordPress
add_theme_support( 'title-tag' );
// wp_nav_menu() setup
register_nav_menus( array(
'header' => __('Header Menu', 'bidnis'),
'footer' => __('Footer Menu', 'bidnis')
));
}
endif;
add_action( 'after_setup_theme', 'bidnis_setup' );
/**
* Basic widget area structure
*
* @since Bidnis 1.0
*/
function bidnis_widget_init(){
register_sidebar( array(
'name' => __('Above content', 'bidnis'),
'id' => 'above-content-widget-area',
'description' => __('Widget area above the content', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Left Sidebar', 'bidnis'),
'id' => 'sidebar-left-widget-area',
'description' => __('Widget area at the left side of the content', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Right Sidebar', 'bidnis'),
'id' => 'sidebar-right-widget-area',
'description' => __('Widget area at the right side of the content', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Footer Top', 'bidnis'),
'id' => 'footer-top-widget-area',
'description' => __('Widget area in the footer', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Footer One', 'bidnis'),
'id' => 'footer-one-widget-area',
'description' => __('Widget area in the footer', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Footer Two', 'bidnis'),
'id' => 'footer-two-widget-area',
'description' => __('Widget area in the footer', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Footer Three', 'bidnis'),
'id' => 'footer-three-widget-area',
'description' => __('Widget area in the footer', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
register_sidebar( array(
'name' => __('Footer Four', 'bidnis'),
'id' => 'footer-four-widget-area',
'description' => __('Widget area in the footer', 'bidnis'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'bidnis_widget_init' );
/**
* Handles JavaScript detection.
*
* Adds a 'js' class to the root element when JavaScript is detected.
*
* @since Bidnis 1.0
*/
function bidnis_javascript_detection() {
echo "\n";
}
add_action( 'wp_head', 'bidnis_javascript_detection', 0 );
/**
* Scripts, Styles and fonts
*
* @since Bidnis 1.0
*/
function bidnis_scripts(){
// Enqueue the font Open Sans from google
wp_enqueue_style( 'bidnis-fonts', 'https://fonts.googleapis.com/css?family=Open+Sans:400,600,800,800italic,700italic,700,600italic,400italic,300italic,300', array(), null);
// Enqueue Font Awesome (example icon set)
wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/lib/font-awesome/css/font-awesome.min.css', array(), '4.6.3');
// Enqueue style.css from root theme folder
wp_enqueue_style( 'style', get_stylesheet_uri() );
// Enqueue theme JS and include jQuery
wp_enqueue_script( 'functions', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), wp_get_theme()->get('Version'), true );
}
add_action( 'wp_enqueue_scripts', 'bidnis_scripts' );
if ( ! function_exists( 'bidnis_customize_styles' ) ) :
function bidnis_customize_styles() { ?>