在还是很简单的直接加上一段代码就可以了,注意加到主题文件的function这个里面就可以了。
//自定义登录页面背景
function custom_login_head(){
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
if(preg_match("/

(.+?)< \/url>/ies",$str,$matches)){ $imgurl='http://cn.bing.com'.$matches[1]; echo''; }} add_action('login_head', 'custom_login_head'); add_filter('login_headerurl', create_function(false,"return get_bloginfo('url');")); add_filter('login_headertitle', create_function(false,"return get_bloginfo('name');")); 别人那里发现的,本人现在用的这段代码还是很好的。很好看,

Last modification:July 22, 2019
如果觉得我的文章对你有用,请随意赞赏