本站用了Catch Box(Blue)的主题。
style.css文件修改如下:
/*第一处修改*/
.site {
width: 1100px;
}
#content {
overflow: hidden;
}
#sidebar-header-top {
width: 100%;
}
#primary {
width: 750px;
}
#secondary {
width: 260px;
}
/*第二处修改*/
strong {
font-weight: bold;
font-size: 24px;
}
/*第三处修改*/
body, input, textarea {
color: #373737;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: 1.62em;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
自定义Page模板如下:
page-my01.php
<?php
/**
* Template Name: Mine Posts Page Template
* Description: A Page Template that shows only my own posts
*/
get_header(); ?>
<?php
//Hansen
// 2 喜欢的诗歌
// 3 喜欢的文章
// 6 英文散文
// 7 经典古文
// 8 经典诗词
//10 日常生活
//11 经典对白
//12 随便说说
//13 不作会死
//14 英文诗歌
//16 宝贝兔子和普通老鼠
//65 个人拙作
//67 私人菜谱
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('cat=10,12,13,16,65,67&paged='.$paged);
//not working, why?
//$args = array(
//‘category__and’ => array(10,12,13,16,65,67),
//'paged' => $paged,
//'posts_per_page' => 10
//);
//
//query_posts($args)
//Debug
//$catlist = get_categories();
?>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php catchbox_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'catch-box' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catch-box' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
<?php
/**
* catchbox_after_content hook
*
*/
do_action( 'catchbox_after_content' ); ?>
</div><!-- #primary -->
<?php
/**
* catchbox_after_primary hook
*
*/
do_action( 'catchbox_after_primary' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>