Deepblue主题修改

对于Deepblue进行了如下的一些修改:


(1) menu的这个div只显示主页和pages,添加显示分类的list链接。

	

	

		Home		

		<?php wp_list_pages('title_li=&depth=1&exclude='); ?>

	

	


修改为

	
		Home		
        <?php wp_list_categories('include=3,4,5,6,7&title_li'); ?>		
		<?php wp_list_pages('title_li=&depth=1&exclude='); ?>

	


(2) 修改进入分类后的显示效果。原来进入某分类后显示的一部分文章title和内容,修改为只显示title的链接:
archive.php

	<!--loop article begin-->
	<?php while (have_posts()) : the_post(); ?>
	<!--post title as a link-->
	<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				
	<!--Post Meta-->
	<div class="post-meta-top">
	<div class="auth"><span>Posted by <strong><?php the_author_posts_link(); ?></strong></span></div>
	<div class="date"><span><?php the_time('F j, Y'); ?></span></div>
	<div class="clearboth"></div>
	</div>

	<!--optional excerpt or automatic excerpt of the post-->
	<?php the_excerpt(); ?>

	<!--Post Meta-->
	<div class="post-meta-bottom">
	<!--<?php if (function_exists('the_tags')) { ?><strong>Tags: </strong><?php the_tags('', ', ', ''); ?><br /><?php } ?>-->
	<div class="cat"><span><?php the_category(', ') ?></span></div>
	<div class="comm"><span><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span></div>
	<div class="clearboth"></div>
	</div>
		
       <!--one post end-->
	<?php endwhile; ?>

 修改为:

<ul>
	<?php while (have_posts()) : the_post(); ?>
	<!--post title as a link-->
	<li>
	<h4 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
	</li>		
	<!--Post Meta-->


	<!--optional excerpt or automatic excerpt of the post-->


	<!--Post Meta-->

		
       <!--one post end-->
	<?php endwhile; ?>
	</ul>
 

这样就把没用的内容和信息删除了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值