2011-08-30 32 views

回答

2

右...

有(不幸)不是在登录页面的模板页面。我不知道这是为什么,也许它是为了安全或某事,我不知道。在任何情况下,你都不能直接编辑它,而不会搞乱wordpress核心。

但是,您可以添加各种挂钩和操作来执行一些自定义操作。下面是我自己的应用程序的一些示例代码:

// this adds stuff to the head. You can add a stylesheet 
    // if you want, or just css like I have. 
    add_action("login_head", "cust_login_head"); 
    function cust_login_head() 
    { 
     // this just changes the logo 
    ?> 
     <style> 
     body.login #login h1 a { 
     background: url('<?=plugins_url('images/logomed.png',__FILE__)?>') no-repeat scroll center top transparent; 
     height: 64px; 
     width: 307px; 
     margin-left: 10px; 
     } 
     </style> 
    <?php 
    } 
    // these change the default links from wordpress to whatever you want 
    add_filter('login_headertitle', create_function(false, "return 'http://website.com';")); 
    add_filter('login_headerurl', create_function(false, "return 'http://website.com';")); 

棍子到你的主题的functions.php文件才能正常工作。

还会有其他这样的方法和挂钩,你可以改变和添加,你只需要找到它们。

1

使用Themed login插件 - 它允许使用网站的主题使登录和注册过程成为主题。