日韩伦理亚洲欧美在线一区_免费看一级大片_在线观看视频一区二区_日韩大片高清播放器大全






    WordPress后臺(tái)登錄界面比較簡(jiǎn)陋,如果直接去修改wp-login.php的樣式,勢(shì)必會(huì)導(dǎo)致下次升級(jí)WordPress版本的時(shí)候,所有的修改都恢復(fù)原樣,于是我們?cè)O(shè)法通過hook的方式來處理類似的修改,找到了如下完美的代碼:

    function custom_login_logo() {
        echo '<style type="text/css">
            h1 a { background-image:url(/wp-content/themes/eastdesign/images/login_logo.png) !important;background-size: auto !important;height: 80px !important;width: 271px !important; }
            html {background: #347edd;}
            body { font-family: PingHei,FZLTXHK,"Microsoft YaHei",Arial,Verdana,sans-serif!important;background: #347edd url(/wp-content/themes/eastdesign/images/login_background.jpg) center;}
            .login #backtoblog a, .login #nav a, .login h1 a {color: #fff;}
            .login form {border-radius: 10px;margin-top: 30px;background-color: #fff;border: 1px solid rgba(255, 255, 255, 0.7);box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.2);}
            .login label {color: #000;}
            .intl-tel-input .country-list .flag, .intl-tel-input .country-list .country-name {color:#000;}
            #major-publishing-actions input, #minor-publishing-actions .preview, #minor-publishing-actions input, #pass-strength-result, .login h1 {margin-top: 0;}
            .ds-icons-32 a.ds-renren,.ds-icons-32 a.ds-kaixin,.ds-icons-32 a.ds-douban {display: none;}
        </style>';
    }
    add_action('login_head', 'custom_login_logo');
    function my_login_logo_url() {
        return get_bloginfo( 'url' );
    }
    add_filter( 'login_headerurl', 'my_login_logo_url' );
    
    function my_login_logo_url_title() {
        return '雋永東方設(shè)計(jì)工作室';
    }
    add_filter( 'login_headertitle', 'my_login_logo_url_title' );

    只需將以上代碼加入模板目錄里邊的functions.php文件里邊保存即可。

    具體效果如下:

    Eastern_Design_Studio-custom-login

    ? ? ? ? ? ? ? ? ? ? ? ?

    我們將在一個(gè)工作日內(nèi)聯(lián)系您

    ? ? ? ? ? ? ? ? ? ? ? ?

    免費(fèi)診斷您的獨(dú)立站及產(chǎn)品搜索量,制定您的海外營(yíng)銷計(jì)劃

    临清市| 合川市| 大理市| 剑川县| 巴林右旗| 阳新县| 海伦市| 盈江县| 盐亭县| 威信县| 阿尔山市| 长岭县| 慈利县| 赣州市| 诏安县| 临潭县| 长汀县| 甘孜县| 卓尼县| 阿图什市| 贡嘎县| 德兴市| 邓州市| 桐庐县| 湄潭县| 叶城县| 若羌县| 镇巴县| 吉木萨尔县| 眉山市| 绥江县| 靖远县| 崇阳县| 菏泽市| 星座| 墨竹工卡县| 威远县| 犍为县| 白城市| 宝应县| 黑河市|