{"id":234,"date":"2010-12-07T17:09:57","date_gmt":"2010-12-07T17:09:57","guid":{"rendered":"http:\/\/gr-01.de\/whitepapers.grafik-und-redaktion.de\/?p=234"},"modified":"2013-06-03T03:44:23","modified_gmt":"2013-06-03T01:44:23","slug":"234","status":"publish","type":"post","link":"https:\/\/whitepapers.grafik-und-redaktion.de\/?p=234","title":{"rendered":"WordPress-Custom-Login nach Frank B\u00fcltge"},"content":{"rendered":"<p>Manchmal will man den WordPress-Look beim Login durch einen anderen Look (zum Beispiel den eines Kunden) ersetzen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-245\" title=\"login\" src=\"http:\/\/gr-01.de\/whitepapers.grafik-und-redaktion.de\/uploads\/2010\/12\/login.jpg\" alt=\"\" width=\"620\" height=\"338\" \/><\/p>\n<p>Diese Methode eine L\u00f6sung, Frank B\u00fcltge hat sie geschrieben. Folgende Zeilen m\u00fcssen in die <code>functions.php<\/code> des Themes:<\/p>\n<p>[php]\/\/ Custom-Login nach Frank Bueltge <a href=\"http:\/\/bueltge.de\/wordpress-27-login-design-anpassen\/846\/\" class=\"autohyperlink\" target=\"_blank\">bueltge.de\/wordpress-27-login-design-anpassen\/846\/<\/a><br \/>\n\/\/ modifiziert nach <a href=\"http:\/\/themeshaper.com\/forums\/topic\/bloginfotemplate_directory-returns-the-thematic-directory\" class=\"autohyperlink\" target=\"_blank\">themeshaper.com\/forums\/topic\/bloginfotemplate_dire&#8230;<\/a><br \/>\nfunction fb_custom_login() {<br \/>\n echo &#8218;&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;&#8216; . get_bloginfo(&#8217;stylesheet_directory&#8216;) . &#8218;\/custom-login\/custom-login.css&quot; \/&gt;&#8216;;<br \/>\n}<br \/>\nadd_action(&#8218;login_head&#8216;, &#8218;fb_custom_login&#8216;);[\/php]<\/p>\n<p>Der Script-Schnipsel tut nichts anderes, als die Login-Seite eine andere CSS beizugeben. Normalerweise wird die <span class=\"wptypo-blau\">wp-admin&gt;css&gt;login.css<\/span> angesprochen; Frank B\u00fcltges Skript sagt WordPress jetzt, es solle stattdessen im Sylesheet-Ordner des Themes den Ordner &#8222;custom-login&#8220; suchen und darin die <code>custom-login.css<\/code> &#8211; die muss man nat\u00fcrlich anlegen. <!--more-->F\u00fcr G\/R Grafik und Redaktion sieht sie so aus:<\/p>\n<p>[css] html{<br \/>\n background-color:#fff;<br \/>\n}<br \/>\nbody{<br \/>\n padding-top: 30px;<br \/>\n font: 11px &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;<br \/>\n}<br \/>\nform{<br \/>\n margin:20px 0 20px 0;<br \/>\n margin-left: 8px;<br \/>\n padding: 16px 16px 40px 16px;<br \/>\n font-weight: normal;<br \/>\n background: #fff;<br \/>\n border-radius: 5px;<br \/>\n border:none;<br \/>\n -moz-box-shadow:none;<br \/>\n -webkit-box-shadow:none;<br \/>\n -khtml-box-shadow:none;<br \/>\n box-shadow:none;<br \/>\n\/*\u00a0\u00a0 \u00a0-moz-border-radius: 11px;<br \/>\n -khtml-border-radius: 11px;<br \/>\n -webkit-border-radius: 11px;<br \/>\n border: 1px solid #808080;<br \/>\n -moz-box-shadow: rgba(0,0,0,1) 0 4px 18px;<br \/>\n -webkit-box-shadow: rgba(0,0,0,1) 0 4px 18px;<br \/>\n -khtml-box-shadow: rgba(0,0,0,1) 0 4px 18px;<br \/>\n box-shadow: rgba(200,200,200,1) 0 4px 18px; *\/<br \/>\n}<br \/>\nform .forgetmenot{<br \/>\n font-weight: normal;<br \/>\n float: left;<br \/>\n margin-bottom: 0;<br \/>\n}<br \/>\n.button-primary{<br \/>\n color:#cc0000;<br \/>\n font-family: &quot;Lucida Grande&quot;,Verdana,Arial,&quot;Bitstream Vera Sans&quot;,sans-serif;<br \/>\n padding: 3px 10px;<br \/>\n border: none;<br \/>\n font-size: 12px;<br \/>\n border-width: 1px;<br \/>\n border-style: solid;<br \/>\n -moz-border-radius: 11px;<br \/>\n -khtml-border-radius: 11px;<br \/>\n -webkit-border-radius: 11px;<br \/>\n border-radius: 11px;<br \/>\n cursor: pointer;<br \/>\n text-decoration: none;<br \/>\n margin-top: -3px;<br \/>\n}<\/p>\n<p>input.button-primary, button.button-primary, a.button-primary {<br \/>\nbackground: #000 repeat-x scroll left top;<br \/>\nborder:none;<br \/>\ncolor:#FFFFFF;<br \/>\nfont-weight:bold;<br \/>\ntext-shadow:none;<br \/>\n}<\/p>\n<p>input.button-primary:active, button.button-primary:active, a.button-primary:active {<br \/>\nbackground: black url(..\/images\/button-grad-active.png) repeat-x scroll left top;<br \/>\ncolor:#EAF2FA;<br \/>\n}<\/p>\n<p>.button:active, .submit input:active, .button-secondary:active {<br \/>\nbackground:url(..\/images\/white-grad-active.png) repeat-x scroll left top #EEEEEE;<br \/>\n}<\/p>\n<p>#login form p{<br \/>\n margin-bottom: 0;<br \/>\n}<br \/>\nlabel{<br \/>\n color: #777;<br \/>\n font-size: 13px;<br \/>\n}<br \/>\nlabel br:before{<br \/>\n content: &quot;?&quot;;<br \/>\n}<br \/>\nform .forgetmenot label{<br \/>\n font-size: 11px;<br \/>\n line-height: 19px;<br \/>\n}<br \/>\nform .submit,.alignright{<br \/>\n float: right;<br \/>\n}<br \/>\nform p{<br \/>\n margin-bottom: 24px;<br \/>\n}<br \/>\nh1 a{<br \/>\n background: url(..\/images\/login-logo.png) no-repeat top center;<br \/>\n width: 326px;<br \/>\n height: 67px;<br \/>\n text-indent: -9999px;<br \/>\n overflow: hidden;<br \/>\n padding-bottom: 15px;<br \/>\n display: block;<br \/>\n}<br \/>\n.login #nav a, .login #nav a:hover {<br \/>\n color:#000!important;<br \/>\n text-decoration:none;<br \/>\n text-shadow:none<br \/>\n}<br \/>\n#backtoblog{<br \/>\n display:none<br \/>\n\/*\u00a0\u00a0 \u00a0position: absolute;<br \/>\n top: 0;<br \/>\n left: 0;<br \/>\n color:#ececec;<br \/>\n border-bottom: #080808 1px solid;<br \/>\n background: #3a3a3a;<br \/>\n background: -moz-linear-gradient(bottom,#3a3a3a,#080808);<br \/>\n background: -webkit-gradient(linear,left bottom,left top,from(#3a3a3a),to(#080808));<br \/>\n height: 30px;<br \/>\n width: 100%; *\/<br \/>\n}<\/p>\n<p>#backtoblog a{<br \/>\n color:#aaaaaa!important;<br \/>\n text-decoration: none;<br \/>\n display: block;<br \/>\n padding: 8px 0 0 15px;<br \/>\n}<br \/>\n#login{<br \/>\n width: 320px;<br \/>\n margin: 7em auto;<br \/>\n}<br \/>\n#login_error,.message{<br \/>\n margin: 0 0 16px 8px;<br \/>\n border-width: 1px;<br \/>\n border-style: solid;<br \/>\n padding: 12px;<br \/>\n -moz-border-radius: 3px;<br \/>\n -khtml-border-radius: 3px;<br \/>\n -webkit-border-radius: 3px;<br \/>\n border-radius: 3px;<br \/>\n}<br \/>\n#nav{<br \/>\n margin: 0 0 0 8px;<br \/>\n padding: 16px;<br \/>\n}<br \/>\n#user_pass,#user_login,#user_email{<br \/>\n font-size: 24px;<br \/>\n width: 97%;<br \/>\n padding: 3px;<br \/>\n margin-top: 2px;<br \/>\n margin-right: 6px;<br \/>\n margin-bottom: 16px;<br \/>\n border: 1px solid #e5e5e5;<br \/>\n background: #fbfbfb;<br \/>\n}<br \/>\ninput{<br \/>\n color: #555;<br \/>\n}<br \/>\n.clear{<br \/>\n clear: both;<br \/>\n}<br \/>\ninput.button-primary:hover,button.button-primary:hover,a.button-primary:hover,a.button-primary:focus,a.button-primary:active{<br \/>\n background: black url(..\/images\/button-grad-rot.png) repeat-x scroll left top;<br \/>\n border-color: red;<br \/>\n color: white;<br \/>\n}[\/css]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manchmal will man den WordPress-Look beim Login durch einen anderen Look (zum Beispiel den eines Kunden) ersetzen. Diese Methode eine L\u00f6sung, Frank B\u00fcltge hat sie geschrieben. Folgende Zeilen m\u00fcssen in die functions.php des Themes: [php]\/\/ Custom-Login nach Frank Bueltge bueltge.de\/wordpress-27-login-design-anpassen\/846\/ \/\/ modifiziert nach <a href=\"http:\/\/themeshaper.com\/forums\/topic\/bloginfotemplate_dire&#8230;\" class=\"autohyperlink\" target=\"_blank\">themeshaper.com\/forums\/topic\/bloginfotemplate_dire&#8230;<\/a> function fb_custom_login() { echo &#8218;&lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;&#8216; . get_bloginfo(&#8217;stylesheet_directory&#8216;) . [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[17],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-functions-php"],"_links":{"self":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=234"}],"version-history":[{"count":5,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":3336,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions\/3336"}],"wp:attachment":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}