{"id":316,"date":"2013-06-20T00:40:07","date_gmt":"2013-06-19T16:40:07","guid":{"rendered":"http:\/\/www.ln.la\/?p=316"},"modified":"2013-06-20T00:40:07","modified_gmt":"2013-06-19T16:40:07","slug":"replace-wordpress-login-and-registration-page-logo-image-links-and-text-description","status":"publish","type":"post","link":"https:\/\/www.lnlog.cn\/index.php\/2013\/06\/20\/replace-wordpress-login-and-registration-page-logo-image-links-and-text-description\/","title":{"rendered":"\u66f4\u6362WordPress\u767b\u5f55\u548c\u6ce8\u518c\u9875\u9762logo\u56fe\u7247\u94fe\u63a5\u53ca\u6587\u5b57\u63cf\u8ff0"},"content":{"rendered":"<p><span style=\"color: #ff6600;\">\u7b2c\u4e00\u6b65\uff1a<\/span><\/p>\n<p>\u901a\u8fc7\u4fee\u6539\u4e3b\u9898\u6a21\u677f\u51fd\u6570function.php\u6dfb\u52a0\u76f8\u5e94\u7684\u529f\u80fd\u51fd\u6570\u6765\u5b8c\u6210\u5bf9WordPress\u535a\u5ba2\u767b\u5f55\u9875\u9762logo\u7684\u5168\u65b9\u4f4d\u66ff\u6362\u3002\u5c06\u4e0b\u5217\u4ee3\u7801\u590d\u5236\u7c98\u8d34\u5230function.php\u51fd\u6570\u95ed\u5408\u4e2d\u3002<\/p>\n<p>\u5982\u4f55\u66f4\u6362\u767b\u5f55\u9875\u9762logo\u56fe\u7247<\/p>\n<div>\n<div id=\"highlighter_767362\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<\/td>\n<td>\n<div>\n<div><code>\/\/\u66f4\u6362\u767b\u5f55logo\u56fe\u7247\u00a0<\/code><\/div>\n<div><code>function<\/code>\u00a0<code>custom_loginlogo()\u00a0{\u00a0<\/code><\/div>\n<div><code>echo<\/code>\u00a0<code>'&lt;style\u00a0type=<\/code><code>\"text\/css\"<\/code><code>&gt;\u00a0<\/code><\/div>\n<div><code>h1\u00a0a\u00a0{background-image:\u00a0url(<\/code><code>'.get_bloginfo('<\/code><code>template_directory<\/code><code>').'<\/code><code>\/logo.gif)\u00a0!important;\u00a0}\u00a0<\/code><\/div>\n<div><code>&lt;\/style&gt;';\u00a0<\/code><\/div>\n<div><code>}\u00a0<\/code><\/div>\n<div><code>add_action(<\/code><code>'login_head'<\/code><code>,\u00a0<\/code><code>'custom_loginlogo'<\/code><code>);<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u522b\u5fd8\u4e86\u5c06\u81ea\u5df1logo\u56fe\u7247\u4e0a\u4f20\u5230\u6307\u5b9a\u7684\u6a21\u677f\u76ee\u5f55\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u5982\u4f55\u66f4\u6362\u767b\u9646\u9875\u9762logo\u94fe\u63a5<\/p>\n<div>\n<div id=\"highlighter_123859\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>\/\/\u66f4\u6362\u767b\u5f55logo\u94fe\u63a5\u00a0<\/code><\/div>\n<div><code>add_filter(<\/code><code>\"login_headerurl\"<\/code><code>,\u00a0create_function(false,<\/code><code>\"return\u00a0get_bloginfo('siteurl');\"<\/code><code>));<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5982\u4f55\u66f4\u6362\u6389logo\u7684\u6587\u5b57\u63cf\u8ff0<\/p>\n<div>\n<div id=\"highlighter_388905\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>\/\/\u66f4\u6362\u767b\u5f55logo\u63cf\u8ff0\u00a0<\/code><\/div>\n<div><code>add_filter(<\/code><code>\"login_headertitle\"<\/code><code>,\u00a0create_function(false,<\/code><code>\"return\u00a0get_bloginfo('description');\"<\/code><code>));<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u767b\u5f55\u9875\u5982\u4f55\u6302\u8f7d\u81ea\u5b9a\u4e49\u6837\u5f0f<\/p>\n<div>\n<div id=\"highlighter_699338\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<\/td>\n<td>\n<div>\n<div><code>\/\/\u00a0custom\u00a0login\u00a0for\u00a0theme\u00a0<\/code><\/div>\n<div><code>function<\/code>\u00a0<code>custom_login()\u00a0{\u00a0<\/code><\/div>\n<div><code>echo<\/code>\u00a0<code>'&lt;link\u00a0rel=\"stylesheet\"\u00a0type=\"text\/css\"\u00a0href=\"'<\/code>\u00a0<code>.\u00a0get_bloginfo(<\/code><code>'template_directory'<\/code><code>)\u00a0.\u00a0<\/code><code>'\/custom-login.css\"\u00a0\/&gt;'<\/code><code>;\u00a0<\/code><\/div>\n<div><code>}\u00a0<\/code><\/div>\n<div><code>add_action(<\/code><code>'login_head'<\/code><code>,\u00a0<\/code><code>'custom_login'<\/code><code>);<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><span style=\"color: #ff6600;\">\u7b2c\u4e8c\u6b65\uff1a<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5982\u679c\u7b2c\u4e00\u6b65\u4e2d\u6700\u540e\u4e00\u70b9\u4e0d\u61c2\u767b\u5f55\u9875\u5982\u4f55\u6302\u8f7d\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u90a3\u4e48\u76f4\u63a5\u4fee\u6539<\/span><\/p>\n<p><span style=\"color: #000000;\">wp-admin\/css\/wp-admin.css\u548cwp-admin.min.css\u4e24\u4e2a\u6587\u4ef6\uff0c\u641c\u7d22wordpress-logo.png\uff0c\u628a\u8fd9\u4e2a\u56fe\u7247\u5730\u5740\u66f4\u6539\u4e3a\u4f60\u60f3\u8981\u8bbe\u7f6e\u7684\u5730\u5740\uff0c\u5e76\u4fee\u6539\u76f8\u5e94\u6837\u5f0f\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u53ea\u4e0d\u8fc7\u8fd9\u79cd\u4fee\u6539\u66f4\u65b0wordpress\u540e\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u4fee\u6539\uff01<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65\uff1a \u901a\u8fc7\u4fee\u6539\u4e3b\u9898\u6a21\u677f\u51fd\u6570function.php\u6dfb\u52a0\u76f8\u5e94\u7684\u529f\u80fd\u51fd\u6570\u6765\u5b8c\u6210\u5bf9WordPress\u535a\u5ba2\u767b\u5f55\u9875\u9762 &hellip; <a href=\"https:\/\/www.lnlog.cn\/index.php\/2013\/06\/20\/replace-wordpress-login-and-registration-page-logo-image-links-and-text-description\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u66f4\u6362WordPress\u767b\u5f55\u548c\u6ce8\u518c\u9875\u9762logo\u56fe\u7247\u94fe\u63a5\u53ca\u6587\u5b57\u63cf\u8ff0<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[55,94],"class_list":["post-316","post","type-post","status-publish","format-standard","hentry","category-tech","tag-logo","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":0,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}