__( 'Primary Menu', 'business' ), 'footer' => __( 'Footer Menu', 'business' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Custom logo */ $args = array( 'height' => 39, 'width' => 137, 'header-text' => array('site-title','site-description'), ); add_theme_support( 'custom-logo', $args ); /* * woocommerce support */ add_theme_support( 'woocommerce' ); } endif; // wlsbusiness_setup add_action( 'after_setup_theme', 'wlsbusiness_setup' ); // wp title function rwlsbusiness_title( $title, $sep ) { global $paged, $page; if( is_home() ){ return $title; } 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' ); 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( _e( 'Page', 'business' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'rwlsbusiness_title', 10,2 );