get_template_directory_uri() . '/images/header.png', 'uploads' => true, ); add_theme_support( 'custom-header', $args ); // the_excerpt Settings remove_filter('the_excerpt', 'wpautop'); // This theme uses wp_nav_menu() in one location. register_nav_menus( array('top' => 'Theme Top Menu') ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'nm_slice_custom_background_args', array( 'default-color' => 'F2F2F2', 'default-image' => '', ) ) ); } endif; // nm_elysium_setup add_action( 'after_setup_theme', 'nm_elysium_setup' ); /** * Adjust content width in certain contexts. * * Adjusts content_width value for full-width and single image attachment * templates, and when there are no active widgets in the sidebar. * * @since Twenty Twelve 1.0 * * @return void */ function elysium_content_width() { if ( is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { global $content_width; $content_width = 960; } } add_action( 'template_redirect', 'elysium_content_width' ); // Load Styles function nm_elysium_scripts() { wp_enqueue_script('custom-script',get_template_directory_uri() . '/js/script.js',array( 'jquery' )); wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css'); wp_enqueue_script('bootstrap-js',get_template_directory_uri() . '/js/bootstrap.min.js'); } add_action( 'wp_enqueue_scripts', 'nm_elysium_scripts' ); function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); function new_excerpt_more( $more ) { return '...'; } add_filter('excerpt_more', 'new_excerpt_more'); // Declare sidebar widget zone if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Home Widgets', 'id' => 'home-widgets', 'description' => 'These are widgets for the homepage.', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Sidebar Widgets', 'id' => 'sidebar-widgets', 'description' => 'These are widgets for the sidebar.', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); // Footer Widgets register_sidebar(array( 'name' => 'Footer Box 1', 'id' => 'footer-box-1', 'description' => 'These are widgets for the footer box 1.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Footer Box 2', 'id' => 'footer-box-2', 'description' => 'These are widgets for the footer box 2.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Footer Box 3', 'id' => 'footer-box-3', 'description' => 'These are widgets for the footer box 3.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'Footer Box 4', 'id' => 'footer-box-4', 'description' => 'These are widgets for the footer box 4.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

' )); } ?>