diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php index de4987069e..bcc4bfa6e6 100644 --- a/wp-content/themes/twentyten/header.php +++ b/wp-content/themes/twentyten/header.php @@ -2,8 +2,9 @@ > - <?php - if ( is_single() ) { + <title><?php + // Returns the title based on the type of page being viewed + if ( is_single() ) { single_post_title(); echo ' | '; bloginfo( 'name' ); } elseif ( is_home() || is_front_page() ) { bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number(); @@ -16,10 +17,9 @@ } else { wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number(); } - ?> + ?> - diff --git a/wp-content/themes/twentyten/print.css b/wp-content/themes/twentyten/print.css index 5fbc8d0489..e69de29bb2 100644 --- a/wp-content/themes/twentyten/print.css +++ b/wp-content/themes/twentyten/print.css @@ -1,85 +0,0 @@ -/* -This stylesheet reformats the theme for the printed page. -*/ - -body { - background:none !important; -} -#wrapper { - float: none !important; - clear: both !important; - display: block !important; - position: relative !important; -} -#header { - border-bottom: 4pt solid #000; - padding-bottom: 18pt; -} -#site-title, #site-description { - float: none; - margin: 0; -} -#site-title { - font-size: 13pt; -} -.entry-content { - font-size: 14pt; - line-height: 1.6em; -} -.entry-title { - font-size: 21pt; - line-height: 1.4em; -} -#access, -#branding img, -#respond, -.comment-edit-link, -.edit-link, -.navigation, -.page-link, -.widget-area { - display: none !important; -} -#branding img.wp-post-image { - display: block !important; - margin-left: -104pt; - margin-top: 20pt; - border: none; - margin-bottom: -24pt; -} -#container, #header, #footer { - margin: 0 0 0 24%; - width: 70%; -} -#content { - margin: 24pt 0 0; -} -.wp-caption p { - font-size: 11pt; -} -#site-info, -#site-generator { - float: none; - width: auto; -} -#colophon { - width: auto; -} -img#wpstats { - display:none -} -#site-generator a { - padding: 0; - margin: 0; -} -#entry-author-info { - border: 1px solid #e7e7e7; -} -#main { - margin: 0; - width: auto; - padding: 0; -} -.home .sticky { - border: none; -} \ No newline at end of file diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 887996c62b..ae8b577e79 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -1198,4 +1198,93 @@ code { #site-description { -webkit-text-size-adjust: none; -} \ No newline at end of file +} + + + +/* =Print Style +-------------------------------------------------------------- */ + +@media print { + body { + background:none !important; + } + #wrapper { + float: none !important; + clear: both !important; + display: block !important; + position: relative !important; + } + #header { + border-bottom: 4pt solid #000; + padding-bottom: 18pt; + } + #site-title, #site-description { + float: none; + margin: 0; + } + #site-title { + font-size: 13pt; + } + .entry-content { + font-size: 14pt; + line-height: 1.6em; + } + .entry-title { + font-size: 21pt; + line-height: 1.4em; + } + #access, + #branding img, + #respond, + .comment-edit-link, + .edit-link, + .navigation, + .page-link, + .widget-area { + display: none !important; + } + #branding img.wp-post-image { + display: block !important; + margin-left: -104pt; + margin-top: 20pt; + border: none; + margin-bottom: -24pt; + } + #container, #header, #footer { + margin: 0 0 0 24%; + width: 70%; + } + #content { + margin: 24pt 0 0; + } + .wp-caption p { + font-size: 11pt; + } + #site-info, + #site-generator { + float: none; + width: auto; + } + #colophon { + width: auto; + } + img#wpstats { + display:none + } + #site-generator a { + padding: 0; + margin: 0; + } + #entry-author-info { + border: 1px solid #e7e7e7; + } + #main { + margin: 0; + width: auto; + padding: 0; + } + .home .sticky { + border: none; + } +}