{"id":1464,"date":"2012-04-18T21:57:10","date_gmt":"2012-04-19T04:57:10","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=1464"},"modified":"2012-04-18T21:57:10","modified_gmt":"2012-04-19T04:57:10","slug":"customize-login-page-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/customize-login-page-in-wordpress.html","title":{"rendered":"Customize Login Page In WordPress"},"content":{"rendered":"<p style=\"text-align: center;\"><em>I wanted to change the login page background with my own blog logo. By searching the user forum, someone did it in a way that even with the new update, the blog logo will always be there, just the background will change. I copied his codes and put in the theme function.php on the first line and it works. Here is the code with the techs11.png logo I created and put in the images folder of my theme.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">add_action(&#8220;login_head&#8221;, &#8220;my_login_head&#8221;);<br \/>\nfunction my_login_head() {<br \/>\necho &#8221;<br \/>\n&lt;style&gt;<br \/>\nbody.login #login h1 a {<br \/>\nbackground: url(&#8216;&#8221;.get_bloginfo(&#8216;template_url&#8217;).&#8221;\/images\/techs11.png&#8217;) no-repeat scroll center top transparent;<br \/>\nheight: 64px;<br \/>\nwidth: 300px;<br \/>\n}<br \/>\n&lt;\/style&gt;<br \/>\n&#8220;;<br \/>\n}<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>I modified the wp-admin.css, replaced the background of login to my images and here is how it <a class=\"ib\" title=\"login page\" href=\"\/\/www.dognmonkey.com\/techs\/wp-login.php\">came out<\/a>.<\/em><\/p>\n<p style=\"text-align: center;\"><em>Modify wp-admin\/css\/wp-admin.css<br \/>\n<\/em><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><em><\/em>body.login{background:url(\/techs\/wp-content\/themes\/idogwp\/images\/3e0000.gif);min-width:0;}&#8230;<\/p>\n<p style=\"text-align: center;\">.login form{margin-left:8px;padding:26px 24px 46px;font-weight:normal;background:url(\/techs\/wp-content\/themes\/idogwp\/images\/back2.png) no-repeat top left;}<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>Remove all borders and css3 for login form.<\/em><\/p>\n<p style=\"text-align: center;\"><em>Next, create the blog logo size 300&#215;64 pixels with transparent background (use free program paint.net is best for this logo) and put it in the theme&#8217;s images folder.<\/em><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" rel=\"shadowbox\" title=\"create wplogin logo\" href=\"\/media\/wpweb\/themes\/wplogo.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"create wplogin logo\" src=\"\/media\/wpweb\/themes\/tn_wplogo.jpg\" alt=\"create logo\" width=\"250\" height=\"201\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em>Save as png to keep the transparent background.<\/em><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" title=\"wp login logo 300x64 px\" src=\"\/idogjs\/css\/techs11.png\" alt=\"wp login logo\" width=\"300\" height=\"64\" \/><\/p>\n<p style=\"text-align: center;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to change the login page background with my own blog logo. By searching the user forum, someone did it in a way that even with the new update, the blog logo will always be there, just the background will change. I copied his codes and put in the theme function.php on the first <a href=\"https:\/\/www.dognmonkey.com\/techs\/customize-login-page-in-wordpress.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,22],"tags":[],"class_list":["post-1464","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-wordpress-3-3-1"],"views":1642,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/1464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=1464"}],"version-history":[{"count":0,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/1464\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=1464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=1464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=1464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}