windhamdavid 5 years ago
parent
commit
a597fdf54f
6 changed files with 54 additions and 42 deletions
  1. 2 0
      .gitignore
  2. 3 1
      footer.php
  3. 13 2
      functions.php
  4. 3 3
      header.php
  5. BIN
      img/gzet_50.png
  6. 33 36
      style.css

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.DS_store
+img/*

File diff suppressed because it is too large
+ 3 - 1
footer.php


+ 13 - 2
functions.php

@@ -22,8 +22,6 @@ remove_action('wp_head', 'feed_links', 2 );
 add_editor_style();
 add_theme_support( 'post-thumbnails' );
 set_post_thumbnail_size( 150, 150, true );
-add_image_size( 'post-tiny', 100, 100, true );	
-add_image_size( 'post-medium', 250, 175, true );
 add_image_size( 'post-large', 770, 577, true );
 add_theme_support( 'automatic-feed-links' );
 add_theme_support( 'menus' );
@@ -36,6 +34,19 @@ function dw_remove_wp_ver_css_js( $src ) {
 add_filter( 'style_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 add_filter( 'script_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 
+add_action( 'admin_head', 'dw_hide' );
+function dw_hide() {
+    ?>
+    <style type="text/css" media="screen">
+    #footer {display:none;}
+	#contextual-help-link-wrap {display: none;}
+	#wpadminbar {display: none;}
+	body.admin-bar #wpcontent, body.admin-bar #adminmenu {padding-top:0;}
+	html.wp-toolbar{padding-top:0;}
+	#postexcerpt p {display: none;}
+    </style>
+<?php }
+
 add_action( 'wp_enqueue_scripts', 'dw_scripts' );
 function dw_scripts() {
 	global $post;

+ 3 - 3
header.php

@@ -11,11 +11,11 @@
 		<div id="masthead">
 			<div id="branding" role="banner">
 				<div id="site-title">
-				<span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
+				<span><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">David A. Windham</a></span>
 				</div> 
 			</div>
-			<div id="access" role="navigation">
-				 <?php wp_nav_menu( array( 'menu' => 'main','sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>
+			<div id="access" class="navi" role="navigation">
+				 <!--<?php wp_nav_menu( array( 'menu' => 'main','sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>-->
 			</div>
 		</div>
 	</div>

BIN
img/gzet_50.png


+ 33 - 36
style.css

@@ -1,3 +1,5 @@
+/* @override http://macs.local/david/wp-content/themes/dw/style.css */
+
 /*
 Theme Name: dw
 Theme URI: http://davidawindham.com/
@@ -200,7 +202,6 @@ code {
 /* =Structure
 -------------------------------------------------------------- */
 
-/* The main theme structure */
 #access .menu-header,
 div.menu,
 #colophon,
@@ -212,38 +213,16 @@ div.menu,
 }
 #wrapper {
 	background: #fff;
-	margin-top: 20px;
+	margin: 20px auto 30px;
 	padding: 0 40px;
 }
 
-/* Structure the footer area */
-#footer-widget-area {
-	overflow: hidden;
-}
-#footer-widget-area .widget-area {
-	float: left;
-	margin-right: 20px;
-	width: 220px;
-}
-#footer-widget-area #fourth {
-	margin-right: 0;
-}
-#site-info {
-	float: left;
-	font-size: 14px;
-	font-weight: bold;
-	width: 700px;
-}
-#site-generator {
-	float: right;
-	width: 220px;
-}
+
 
 
 /* =Global Elements
 -------------------------------------------------------------- */
 
-/* Main global 'theme' and typographic styles */
 body {
 	background: #f1f1f1;
 }
@@ -386,7 +365,7 @@ a:hover {
 -------------------------------------------------------------- */
 
 #header {
-	padding: 30px 0 0 0;
+	padding: 50px 0 0 0;
 }
 #site-title {
 	float: right;
@@ -405,14 +384,16 @@ a:hover {
 	width: 160px;
 }
 
-/* This is the custom header image */
-#branding img {
-	border-top: 4px solid #000;
-	border-bottom: 1px solid #000;
-	clear: both;
-	display: block;
+/* #site-title:hover .navi {
+  display: block;
+  visibility: visible;
+  opacity: 1;
+  transition: opacity 2s linear;
 }
-
+#access.navi {
+	display: none;
+}
+*/
 
 /* =Menu
 -------------------------------------------------------------- */
@@ -684,7 +665,7 @@ h2.entry-title {
 .entry-content,
 .entry-summary {
 	clear: both;
-	padding: 18px 0 20px 0;
+	padding: 18px 0 20px;
 }
 	.entry-guestbook {
 		clear: both;
@@ -1002,6 +983,7 @@ body.page .edit-link {
 	font-size: 12px;
 	line-height: 18px;
 	overflow: hidden;
+
 }
 .navigation a:link,
 .navigation a:visited {
@@ -1033,7 +1015,22 @@ body.page .edit-link {
 	display: block;
 }
 #nav-below {
-	margin: -18px 0 0 0;
+	margin: 50px 0 0px;
+	padding: 20px 10px 0;
+	border-top: 1px solid #cecece;
 }
 
-
+/* =Footer
+-------------------------------------------------------------- */
+p.cc {
+	float: left;
+	font-size: 14px;
+	margin: 0px 0 30px;
+}
+span.quiet {
+	display: none;
+}
+img.dw {
+	float: right;
+	margin: 0px 0 0;
+}