windhamdavid 9 years ago
parent
commit
31674d6cc2
4 changed files with 36 additions and 30 deletions
  1. 14 17
      404.php
  2. 1 1
      search.php
  3. 9 10
      searchform.php
  4. 12 2
      style.css

+ 14 - 17
404.php

@@ -1,22 +1,19 @@
 <?php get_header(); ?>
-	<div class="container">
-		<div id="content" role="main">
-			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-				<div class="entry-content">
-					<div class="date">
-						<?php the_date(); ?>
-					</div>
-					<?php if ( have_posts() ) : ?>
-					<header class="page-header">
-						<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'dw' ), get_search_query() ); ?></h1>
-					</header>
-						<?php 	while ( have_posts() ) : the_post();the_excerpt();
-								endwhile; dw_paging_nav();
-								else :get_search_form();
-								endif; 
-						?>
+	<div class="container leader">
+		<div class="row">
+			<div class="col-sm-12">
+				<h1 class="super-duper cm-sans">Ouch</h1>
+				<h2 class="super cm-san">Something is Amiss.</h2>
+				<h3 class="cm-san">You might want to look elsewhere.</h3>
+				<div class="not-search">		
+					<?php get_search_form();?>
 				</div>
 			</div>
 		</div>
+		<div class="row">
+			<div class="col-sm-12">
+
+			</div>
+		</div>
 	</div>
-<?php get_footer(); ?>
+<?php get_footer('studio'); ?>

+ 1 - 1
search.php

@@ -5,7 +5,7 @@
 				<div class="entry-content">
 					<?php if ( have_posts() ) : ?>
 					<header class="page-header">
-						<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'dw' ), get_search_query() ); ?></h1>
+						<h1 class="super cm-sans"></strong><?php printf( __( 'Search for: %s', 'dw' ), get_search_query() ); ?></h1>
 					</header>
 						<?php while ( have_posts() ) : the_post();?>
 						<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>

+ 9 - 10
searchform.php

@@ -1,11 +1,10 @@
-<form role="search" method="get" class="search-form form-inline" action="<?php echo home_url( '/' ); ?>">
-	<div class="input-group">
-		<label>
-			<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
-			<input type="search" class="search-field form-control" placeholder="Search" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
-		</label>
-		<span class="input-group-btn">
-		<input type="submit" class="search-submit btn btn-default" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
-		</span>
-	</div>
+<form role="search" action="<?php echo home_url( '/' ); ?>" method="get" class="form-inline">
+    <fieldset>
+		<div class="input-group">
+			<input type="text" name="s" id="search" placeholder="<?php _e("Search","wpbootstrap"); ?>" value="<?php the_search_query(); ?>" class="form-control" />
+			<span class="input-group-btn">
+				<button type="submit" class="btn btn-default"><span class="fa fa-search"></span></button>
+			</span>
+		</div>
+    </fieldset>
 </form>

+ 12 - 2
style.css

@@ -1284,8 +1284,18 @@ body.art .site-title a {
 .art-image {
 	margin: 0 auto;
 }
-
-
+/*============================================
+					404
+==============================================*/
+.not-search {
+	margin: 30px;
+	padding: 10px;
+	height: 80px;
+	zoom: 180%;
+}
+.not-search button {
+	line-height: 20px;
+}
 
 /*===== Structure =====*/
 .a:hover {