» CMS » WordPress » WordPress

WordPress

: WordPress
: CMS » WordPress
: 1390
: .
: 30-05-2012, 21:05
: fakel
:
: , ,




  WordPress

Bce coce, o-o oe o-o ee, a oa poco eoxoo pp ce op a eaeoe a eceoe. K ey o? a oy, o oa o xoec, o yo ce oo WordPress a co a-ae p xoe a ca (cpaa wp-login.php). Booo o e oe paco o ooe papaoa, o papao WordPress ca peoca ay oooc, o cpeca po, a ypoax acpoy WordPress, e peapoa cxox ao. Papao WordPress epe pea paoa o popecca, a e a oeey co apa, a o co oa ooe. o oay oa cocax oypoc WordPress.

He oao ac c pa c oo oopx, oo ce oo WordPress a co.
Mee oo a-ae

oo coye xy admin_head, aoap oopoy poe co oooe opaee html eea #header-logo:
function my_admin_logo() {
echo '
<style type="text/css">
#header-logo { background:url('.get_bloginfo('template_directory').'/images/favicon.png) no-repeat 0 0 !important; }
</style>';
}
add_action('admin_head', 'my_admin_logo');

o o yo ca a e functions.php

B ao pepe apa axoc ae images aeo aoa aaec oa favicon.png. Paep o ap epc WordPress 3.2+ oe 16x16 cee ( pax epc 32x32 ce). Kapy payeec yo coa apaee. B oe oyc y ac ceye:
  WordPress

B aece aepaoo apaa oo cooa a favicon.ico (oa caa). cex cox cao coa ao a pacoaa eo ay aoa. favicon.ico copye oe caa peyaax oca ece, oaaec o aax/aaax payepe coyec pax aaoax, ooy, e aec, a ca oe e co oy, pe oe eaeo yay. coa oo coy popay Icon Lover (ccy a caae coae e a), popaa aa.

o ca oy aece ooo ap (a e ae e), ee /images/favicon.png a /favicon.ico.
Mee oo p xoe (wp-login.php)

Cey ao oee oo a cpae xoa a ca wp-login.php. Tae coae apy c paepa 326x67 cee, ae e ay images ae e cae ao o functions.php:
function my_login_logo(){
echo '
<style type="text/css">
#login h1 a { background: url('. get_bloginfo('template_directory') .'/images/logo.jpg) no-repeat 0 0 !important; }
</style>';
}
add_action('login_head', 'my_login_logo');

:
  WordPress

Teep, oo ee e apy ea: href (cca a ca wordpress.org) title (ac: ca paoae a WordPress). eae o o epe p:
/* Ca ccy c ooa a ca, a e a wordpress.org */
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );

/* ypae title ooe "ca paoae a wordpress" */
add_filter( 'login_headertitle', create_function('', 'return false;') );


Teep, p e o ooy (o cce) ac epee a ay cpay caa, a e a wordpress.org p aee a oo e y ac "Ca paoae a WordPress".
Bec o eo:
/* WP */
function my_admin_logo() {
echo '<style type="text/css">#header-logo { background:url('.get_bloginfo('template_directory').'/images/favicon.png) no-repeat 0 0 !important; }</style>';
}
add_action('admin_head', 'my_admin_logo');

/* WP */
function my_login_logo(){
echo '<style type="text/css">#login h1 a { background: url('. get_bloginfo('template_directory') .'/images/logo.png) no-repeat 0 0 !important; }</style>';
}
add_action('login_head', 'my_login_logo');
/* , wordpress.org */
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );
/* title " wordpress" */
add_filter( 'login_headertitle', create_function('', 'return false;') );

He aye poep ae apo o apeca y_o_aoa/images/favicon.png y_o_aoa/images/logo.png. B cyae eoxooc ee apeca oe.

.C. oo cooae pepax paea x aopa.






- -