為什麼要讓一個自定義登錄?
Janna Hagan 的網站, 一個學生的網頁設計指南。這是相當簡單的, 您可以使用自己的自定義 CSS 和 jQuery 不需要一個插件。

為什麼不直接使用 BM 自定義登錄?
我真的很喜歡這個 BM 自定義登錄插件直到第二個版本, 因為它是截然不同的第一個。模板層級

最酷的這個方法是我可以保持所有必要的文件模板本身中, 所以所有的東西都保存有組織的和容易參考, 不像插件, 讓他們所有的文件在插件文件夾本身。
更新功能的 php
function custom_login() { $files = '<link rel="stylesheet" href="'.get_bloginfo('template_directory').'/css/login.css" /> <script src="http://use.typekit.com/pgf3epu.js"></script> <script>try{Typekit.load();}catch(e){}</script> <script src="'.get_bloginfo('template_directory').'/js/jquery.min.js"></script> <script src="'.get_bloginfo('template_directory').'/js/login.js"></script>'; echo $files;}add_action('login_head', 'custom_login');
第一步是編寫一個函數在函數。php 文件, 並存儲所有必要的文件在一個變量, 然後呼應出來。我能夠調用文件在主題中使用 get_bloginfo('template_directory')和鏈接文件直接。我還包括一個縮小的 jQuery 文件, 和一個 typekit 工具包。
function custom_login_url() { echo bloginfo('url');}add_filter('login_headerurl', 'custom_login_url');function custom_login_title() { echo get_option('blogname');}add_filter('login_headertitle', 'custom_login_title');
我還添加兩個函數, 一個用於更改 url 的 logo 到網站本身, 而不是 WordPress.org, 以及改變登錄的標題。沒有更多的 PHP 需要這