= 2 || $page >= 2 ) && ! is_404() ) $title = "$title $sep " . sprintf( __('Page', 'busiplus' ), max( $paged, $page ) ); return $title; } } add_filter( 'wp_title', 'busiplus_head_title', 10, 2); if ( ! function_exists( 'busiplus_theme_setup' ) ) : function busiplus_theme_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'busiplus', get_template_directory() . '/lang' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); //Add selective refresh for sidebar widget add_theme_support( 'customize-selective-refresh-widgets' ); /* * Let WordPress manage the document title. */ add_theme_support( 'title-tag' ); // supports featured image add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'busiplus' ), ) ); //Custom Header support add_theme_support( 'custom-header' ); // Add theme support for Custom Logo. add_theme_support( 'custom-logo', array( 'width' => 250, 'height' => 250, 'flex-width' => true, ) ); } endif; add_action( 'after_setup_theme', 'busiplus_theme_setup' );