esc_attr__( 'Primary Menu', 'blogband' ), ) ); // SET CONTENT WIDTH if ( ! isset( $content_width ) ) $content_width = 600; } add_action('after_setup_theme', 'blogband_setup'); // Load styles function blogband_load_styles_scripts(){ // NOTE: SOME OF THESE SCRIPTS ARE HOSTED ON A CDN AND ARE NOT STORED LOCALLY... SO THIS THEME MAY NOT RENDER PROPERLY IF YOU ARE NOT CONNECTED TO THE INTERNET wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css'); wp_enqueue_style( 'google-noto-font', 'https://fonts.googleapis.com/css?family=Noto+Sans'); wp_enqueue_style( 'blogband-font-awesome', get_template_directory_uri() . '/css/all.min.css'); if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action('wp_enqueue_scripts', 'blogband_load_styles_scripts'); function blogband_pingback_wrap(){ if ( is_singular() && pings_open() ) { echo ''; } } add_action( 'wp_head', 'blogband_pingback_wrap'); // Creating the sidebar function blogband_menu_init() { register_sidebar( array( 'name' => esc_html__('Sidebar Widgets', 'blogband'), 'id' => 'sidebar_id', 'class' => '', 'description' => esc_html__('Add sidebar widgets here', 'blogband'), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => esc_html__('Left Sidebar', 'blogband'), 'id' => 'left_sidebar', 'class' => '', 'description' => esc_html__('Add left sidebar widgets here', 'blogband'), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Left Footer', 'blogband'), 'id' => 'left_footer', 'class' => '', 'description' => esc_html__('Add widgets here', 'blogband'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => esc_html__('Middle Footer', 'blogband'), 'id' => 'middle_footer', 'class' => '', 'description' => esc_html__('Add widgets here', 'blogband'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => esc_html__('Right Footer', 'blogband'), 'id' => 'right_footer', 'class' => '', 'description' => esc_html__('Add widgets here', 'blogband'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => esc_html__('Fourth Footer', 'blogband'), 'id' => 'fourth_footer', 'class' => '', 'description' => esc_html__('Add widgets here', 'blogband'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => esc_html__('Full Width Footer', 'blogband'), 'id' => 'full_width_footer', 'class' => '', 'description' => esc_html__('Add widgets here', 'blogband'), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } add_action('widgets_init', 'blogband_menu_init'); // this increases or decreaes the length of the excerpt on the index page function blogband_excerpt_length( $length ) { if ( is_admin() ) { return $length; } return 20; } add_filter( 'excerpt_length', 'blogband_excerpt_length', 999 ); function blogband_excerpt_more( $more ) { //return 'More'; return ' ' . esc_html('Read More', 'blogband') . ''; } add_filter( 'excerpt_more', 'blogband_excerpt_more' );