WordPress2.7使用了新的登录组件。新的登录组件使得修改登录界面成为可能,我将在下面的例子中展示如何修改。
首先在functions.php中添加一个函数:
// custom login for theme
// folder themes/theme_name/custom-login/
function fb_custom_login() {
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/custom-login/custom-login.css" />';
}
add_action('login_head', 'fb_custom_login');


最新评论
4 小时 8 分钟之前
15 小时 25 分钟之前
18 小时 12 分钟之前
20 小时 4 分钟之前
1 天 13 小时之前
1 天 14 小时之前
1 天 17 小时之前
1 天 17 小时之前
1 天 18 小时之前
1 天 20 小时之前