'Footer widget', 'id' => 'widget-1', 'class' => 'custom', 'description' => 'Widget Footer', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar(array( 'name' => 'Navigation Sidebar widget', 'id' => 'widget-2', 'class' => 'custom-1', 'description' => 'Widget navigation bar', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar(array( 'name' => 'Header widget', 'id' => 'widget-3', 'class' => 'custom-3', 'description' => 'Widget Header', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action('widgets_init','GoAwesomeGreen_widget_setup'); /* ========================================================== HEADER FUNCTION ========================================================== */ function GoAwesomeGreen_remove_version(){ return ''; } add_filter('the_generator', 'GoAwesomeGreen_remove_version'); /** * Filters the page title appropriately depending on the current page * * This function is attached to the 'wp_title' fiilter hook. * * @uses get_bloginfo() * @uses is_home() * @uses is_front_page() */ /** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string Filtered title. */ function GoAwesomeGreen_filter_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', '' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'GoAwesomeGreen_filter_wp_title', 10, 2 ); if ( ! isset( $content_width ) ) { $content_width = 900; } function GoAwesomeGreen_enqueue_comments_reply() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'GoAwesomeGreen_enqueue_comments_reply' ); function GoAwesomeGreen_add_editor_styles() { add_editor_style( 'custom-editor-style.css' ); } add_action( 'admin_init', 'GoAwesomeGreen_add_editor_styles' ); ?>