900,
'height' => 138,
'default-text-color' => 'ffffff',
'wp-head-callback' => 'bigcity_header_style',
));
add_theme_support('custom-background');
add_theme_support('html5');
register_nav_menu('main', __('Main navigation menu', 'bigcity'));
add_editor_style('editor-style.css');
}
add_action('after_setup_theme', 'bigcity_after_setup_theme');
function bigcity_header_style() {
?> 'Widgets',
'description' => 'Widgets in this area will be shown on the right-hand side.',
'before_title' => '
',
'after_title' => '
',
'before_widget' => '',
'after_widget' => '
'
));
function bigcity_remove_width_attribute( $html ) {
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
return $html;
}
add_filter( 'post_thumbnail_html', 'bigcity_remove_width_attribute', 10 );
add_filter( 'image_send_to_editor', 'bigcity_remove_width_attribute', 10 );
function bigcity_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', 'twentyfourteen' ), max( $paged, $page ) );
}
return $title;
}
add_filter( 'wp_title', 'bigcity_wp_title', 10, 2 );