Browse Source

Added simple CSS and Sidebars

Also added 404.php.
master
Kondou 8 years ago
parent
commit
110c059804
5 changed files with 65 additions and 3 deletions
  1. +11
    -0
      404.php
  2. +13
    -0
      functions.php
  3. +8
    -0
      index.php
  4. +1
    -3
      sidebar.php
  5. +32
    -0
      style.css

+ 11
- 0
404.php View File

@ -0,0 +1,11 @@
<?php
get_header();
?>
<div id="primary">
</div>
<div id="secondary">
<?php get_sidebar(); ?>
</div>
<?php
get_footer();
?>

+ 13
- 0
functions.php View File

@ -9,4 +9,17 @@ function kpress_setup() {
add_action('after_setup_theme', 'kpress_setup');
wp_enqueue_style('kpress-style', get_stylesheet_uri());
function kpress_widgets_init() {
register_sidebar( array(
'name' => __('Main Sidebar','kpress'),
'id' => 'sidebar-1',
'description' => __('Shown everywhere on the right side', 'kpress' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
}
add_action( 'widgets_init', 'kpress_widgets_init' );
?>

+ 8
- 0
index.php View File

@ -1,4 +1,12 @@
<?php
get_header();
?>
<div id="primary">
</div>
<div id="secondary">
<?php get_sidebar(); ?>
</div>
<?php
get_footer();
?>

+ 1
- 3
sidebar.php View File

@ -1,3 +1 @@
<?php
echo("Work in Progress!");
?>
<?php dynamic_sidebar('sidebar-1'); ?>

+ 32
- 0
style.css View File

@ -10,3 +10,35 @@ Tags: two-columns, fixed-width, custom-header, custom-background, custom-menu (o
License: The MIT License
License URI: http://opensource.org/licenses/MIT
*/
body, h1, h2, h2 a, h2 a:visited, h3, h4, h5, h6, p, select, textarea {
color: #555;
font-family: Arial, Helvetica, Tahoma, sans-serif;
font-size: 13px;
font-weight: normal;
line-height: 20px;
margin: 0;
padding: 0;
text-decoration: none;
}
#main {
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 10px;
margin: 20px auto 0;
overflow: hidden;
padding: 25px 29px 30px;
width: 900px;
}
#primary {
width: 630px;
}
#secondary {
width: 240px;
}