把SideBar的Meta部分功能移到了Footer里

By Minidxer | January 12, 2008

configure-48x48发现 右侧SideBar上的Meta功能,其实用的频率非常低,即使是订阅功能,也因为在头部Navi的地方加了Feed页面而很少用到。自己到后台管理的次数也很少,所以干脆把这个模块都放到最下面的Footer里。SideBar上只是在后台widgets里把Meta移到下面就可以了。另外需要修改模板的Footer.php:


这部分模板不一样,修改的地方也不一样。不过应该都有<?php get_sidebar(); ?>这一行,在这下面添加下面的代码:

   1:  <p class="credit">
   2:       <cite>
   3:      <?php echo 
   4:  sprintf(__("CopyRight by <a href='http://minidx.com/' 
   5:  title='%s'><strong>Minidx.com</strong></a>"), 
   6:  __("CopyRight by Minidx.com")); ?>
   7:      &nbsp; |&nbsp;
   8:      <?php wp_register('',''); ?>&nbsp; |&nbsp;
   9:      <?php wp_loginout(); ?>&nbsp; |&nbsp;
  10:      <a href="<?php bloginfo('rss2_url'); ?>" 
  11:  title="<?php echo attribute_escape(__('Syndicate this site using RSS 2.0')); ?>">
  12:  <?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?>
  13:  </a>
  14:      &nbsp; |&nbsp;
  15:      <a href="<?php bloginfo('comments_rss2_url'); ?>" 
  16:  title="<?php echo attribute_escape(__('The latest comments to all posts in RSS')); ?>">
  17:  <?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?>
  18:  </a>
  19:      </cite>
  20:  </p>
这样,就可以把很少用到的Meta移到最下面了。效果图:
full-text-search-blog_1200116739587 

Topics: WordPress相关 | 2 Comments » | Tags: , , , ,

你可能还对下列文章感兴趣:

2 comments | Add One

  1. !CnSoLoer - 01/12/2008 at 8:11 pm

    我的浏览器看你的页面,老是回出现横向滚动条,你的页面是不是该修改下

  2. Minidxer - 01/13/2008 at 12:58 am

    修改了一下,现在应该没有了.

Leave a Comment

Name(*):

E-Mail(*) :

Website :

Comments :

Search Posts