From ac284ce932c8ca5f6425486036791a26e36edfac Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Fri, 10 May 2013 13:22:57 +0200 Subject: [PATCH] Artist template --- wp-content/themes/studio13/css/app.css | 4 +++- wp-content/themes/studio13/functions.php | 2 +- wp-content/themes/studio13/sass/app.scss | 12 ++++++++++++ wp-content/themes/studio13/template-artists.php | 4 +--- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/studio13/css/app.css b/wp-content/themes/studio13/css/app.css index dfadd36..8318166 100644 --- a/wp-content/themes/studio13/css/app.css +++ b/wp-content/themes/studio13/css/app.css @@ -616,4 +616,6 @@ article .article-footer { text-align: right; margin-bottom: 2em; } .row { /* FIXME: responsive */ width: 1000px; max-width: 1000px; } /* Template styles */ -.template-artists .artists { font-size: 1.5em; text-transform: uppercase; } +.template-artists .artists { font-size: 1.5em; text-transform: uppercase; text-align: center; font-weight: bold; } +.template-artists .artists .artist-box a { color: #007aff; } +.template-artists .artists .artist-box a:hover { color: white; background-color: #ff005c; } diff --git a/wp-content/themes/studio13/functions.php b/wp-content/themes/studio13/functions.php index a05e5d7..6d715cd 100644 --- a/wp-content/themes/studio13/functions.php +++ b/wp-content/themes/studio13/functions.php @@ -12,7 +12,7 @@ add_theme_support( 'post-thumbnails' ); add_image_size( 'eight-columns', 650, 500, true ); add_image_size( 'four-columns', 310, 160, true ); -add_image_size( 'artist-thumb', 310, 260, true ); +add_image_size( 'artist-thumb', 228, 191, true ); function studio_enqueue_scripts() { diff --git a/wp-content/themes/studio13/sass/app.scss b/wp-content/themes/studio13/sass/app.scss index f43e148..5b2917c 100644 --- a/wp-content/themes/studio13/sass/app.scss +++ b/wp-content/themes/studio13/sass/app.scss @@ -445,6 +445,18 @@ article { .artists { font-size: 1.5em; text-transform: uppercase; + text-align: center; + font-weight: bold; + .artist-box { + a { + color: $primary-color; + &:hover { + color: white; + background-color: $secondary-color; + } + } + + } } diff --git a/wp-content/themes/studio13/template-artists.php b/wp-content/themes/studio13/template-artists.php index 9fa980d..9193442 100644 --- a/wp-content/themes/studio13/template-artists.php +++ b/wp-content/themes/studio13/template-artists.php @@ -21,9 +21,7 @@ Template Name: Artists page /* Print our custom post type */ $query = new WP_Query( array ( 'post_type' => 'artist', 'orderby' => 'title', 'order' => 'asc') ); while ( $query->have_posts() ): - $query->the_post(); ?> -
  • - the_post(); ?>