首先是首页右下方的快速登录代码,放到sidebar.php边栏
<div class="widget">
<div class="sponsor">
<?php
global $user_ID, $user_identity, $user_email, $user_login;
get_currentuserinfo();
if (!$user_ID) {
?>
<form id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post"><h3>用户登录</h3>
<p>
<label>用户名:<input class="login" type="text" name="log" id="log" value="" size="12" /></label>
</p>
<p>
<label>密 码:<input class="login" type="password" name="pwd" id="pwd" value="" size="12" /></label>
</p>
<p>
<input class="denglu" type="submit" name="submit" value="登陆" /> <label>记住我 <input id="comment_mail_notify" type="checkbox" name="rememberme" value="forever" /></label>
</p>
<p>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</p>
</form>
<?php }
else { ?>
<h3>用户管理</h3>
<p><div class="v_avatar"><?php echo weisay_get_avatar($user_email, 64); ?></div><div class="v_li">
<li><a href="<?php%20bloginfo('url')%20?>/wp-admin/">控制面板</a></li>
<li><a href="<?php%20bloginfo('url')%20?>/wp-admin/post-new.php">撰写文章</a></li>
<li><a href="<?php%20bloginfo('url')%20?>/wp-admin/edit-comments.php">评论管理</a></li>
<li><a href="<?php%20bloginfo('url')%20?>/wp-login.php?action=logout&redirect_to=<?php%20echo%20urlencode($_SERVER['REQUEST_URI'])%20?>">注销</a></li></div>
</p>
<?php } ?></div>
上面就是增加那个快速登录的代码,其他主题也是类似的!但是CSS可能要改改,看看边栏引用什么CSS吧。