Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New tag styles for single post pages. Footer tweak for archives, more…

… coming there.
  • Loading branch information...
commit bc488d4ccacb5f6e304d31b6c47119f6a64d6ce3 1 parent 1cc1489
@andrewspittle authored
Showing with 41 additions and 3 deletions.
  1. +6 −2 functions.php
  2. +4 −0 loop-single.php
  3. +31 −1 style.css
View
8 functions.php
@@ -11,6 +11,10 @@ function minimalstream_setup() {
// Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
add_theme_support( 'post-formats', array( 'aside', 'gallery', 'status', 'quote' ) );
+ // This theme uses post thumbnails
+ add_theme_support( 'post-thumbnails' );
+ add_image_size( 'book-thumb', 150, 9999 ); //300 pixels wide (and unlimited height)
+
}
endif;
@@ -84,13 +88,13 @@ function ms_tweet_this() {
}
function ms_archives_column() {
// Grab the archives. Return the output
- $get_archives = wp_get_archives( 'echo=0' );
+ $get_archives = wp_get_archives( 'echo=0&limit=12' );
// Split into array items
$archives_array = explode('</li>',$get_archives);
// Amount of archives (count of items in array)
$results_total = count($archives_array);
// How many columns to display
- $archives_per_list = ceil($results_total / 3);
+ $archives_per_list = ceil($results_total / 2);
// Counter number for tagging onto each list
$list_number = 1;
// Set the archive result counter to zero
View
4 loop-single.php
@@ -6,6 +6,10 @@
<div class="entry-meta">
<p>Posted on <?php the_time('F j, Y'); ?> <span class="meta-sep"> • </span> <?php the_category(', ') ?> <span class="meta-sep"> • </span> <?php ms_tweet_this(); ?></p>
</div>
+
+ <div class="entry-tags">
+ <?php the_tags('<h4>Tags</h4><ul><li>','</li><li>','</li></ul>'); ?>
+ </div>
<div class="entry">
View
32 style.css
@@ -214,7 +214,7 @@ li {
border: navajowhite;
}
.post {
- margin-bottom: 60px;
+ margin-bottom: 40px;
}
.post .entry-meta p {
clear: both;
@@ -230,6 +230,36 @@ li {
.post .entry-meta a:hover {
color: #00A6C7;
}
+.post .entry-tags {
+ float: left;
+ margin-left: -160px;
+ text-align: right;
+ width: 120px;
+}
+.post .entry-tags h4 {
+ color: #00A6C7;
+ margin-bottom: 0px;
+ margin-top: 7px;
+ font-weight: normal;
+ font-style: normal;
+ text-transform: uppercase;
+}
+.post .entry-tags ul {
+ margin: 0;
+ padding: 0;
+}
+.post .entry-tags li {
+ font-size: 14px;
+ line-height: 1.74em;
+ list-style-type: none;
+ padding: 0;
+}
+.post .entry-tags a {
+ color: #999;
+}
+.post .entry-tags a:hover {
+ color: #00A6C7;
+}
#content .aligncenter a,
#content .alignright a,
#content .alignleft a,
Please sign in to comment.
Something went wrong with that request. Please try again.