{"id":147,"date":"2014-04-07T10:19:28","date_gmt":"2014-04-07T09:19:28","guid":{"rendered":"http:\/\/www.dessol.com\/blog\/?p=147"},"modified":"2014-04-07T10:43:16","modified_gmt":"2014-04-07T09:43:16","slug":"easily-replace-login-logo-wordpress-using-small-snippet","status":"publish","type":"post","link":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/","title":{"rendered":"Easily replace the login logo on WordPress using this small snippet"},"content":{"rendered":"<p class=\"lead\">As WordPress developers, we&#8217;ve all been there. We have created a fantastic looking website and the client is super happy with it, except the WordPress Login screen doesn&#8217;t match the clients expectations. As perfectionists we want to complete the experience for the client.<\/p>\n<p>All you need to do is create a small function in your theme&#8217;s functions.php file. Using the small code snippet below is all you need.<\/p>\n<p>&nbsp;<\/p>\n<pre><code>function loginLogo() {\r\necho '&lt;style type=\"text\/css\"&gt;\r\n \u00a0 h1 a { background-image:url('.get_bloginfo('template_directory').'\/images\/logo.gif)!important; }\r\n\u00a0 &lt;\/style&gt;';\r\n}\r\nadd_action('login_head', 'loginLogo');<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As WordPress developers, we&#8217;ve all been there. We have created a fantastic looking website and the client is super happy with it, except the WordPress Login screen doesn&#8217;t match the clients expectations. As perfectionists we want to complete the experience for the client. All you need to do is create a small function in your&#8230;<\/p>\n<p><a href=\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\" class=\"more-link\" title=\"Read Easily replace the login logo on WordPress using this small snippet\"><span class=\"label label-primary\">Read more &raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,15,16],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippets","category-php-code-snippets","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"og:description\" content=\"As WordPress developers, we&#8217;ve all been there. We have created a fantastic looking website and the client is super happy with it, except the WordPress Login screen doesn&#8217;t match the clients expectations. As perfectionists we want to complete the experience for the client. All you need to do is create a small function in your...Read more &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-07T09:19:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-07T09:43:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"780\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dessol\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dessol\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\",\"url\":\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\",\"name\":\"Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol\",\"isPartOf\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"datePublished\":\"2014-04-07T09:19:28+00:00\",\"dateModified\":\"2014-04-07T09:43:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage\",\"url\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"contentUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"width\":780,\"height\":300,\"caption\":\"PHP Code Snippet\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\",\"url\":\"https:\/\/www.dessol.com\/blog\/\",\"name\":\"Web Design &amp; Development Lowestoft Blog| Dessol\",\"description\":\"Work, news and murmerings\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dessol.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\",\"name\":\"dessol\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"caption\":\"dessol\"},\"url\":\"https:\/\/www.dessol.com\/blog\/author\/dessol\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/","og_locale":"en_GB","og_type":"article","og_title":"Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol","og_description":"As WordPress developers, we&#8217;ve all been there. We have created a fantastic looking website and the client is super happy with it, except the WordPress Login screen doesn&#8217;t match the clients expectations. As perfectionists we want to complete the experience for the client. All you need to do is create a small function in your...Read more &raquo;","og_url":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/","og_site_name":"Web Design &amp; Development Lowestoft Blog| Dessol","article_published_time":"2014-04-07T09:19:28+00:00","article_modified_time":"2014-04-07T09:43:16+00:00","og_image":[{"width":780,"height":300,"url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","type":"image\/jpeg"}],"author":"dessol","twitter_misc":{"Written by":"dessol","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/","url":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/","name":"Easily replace the login logo on WordPress using this small snippet - Web Design &amp; Development Lowestoft Blog| Dessol","isPartOf":{"@id":"https:\/\/www.dessol.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage"},"image":{"@id":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","datePublished":"2014-04-07T09:19:28+00:00","dateModified":"2014-04-07T09:43:16+00:00","author":{"@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/easily-replace-login-logo-wordpress-using-small-snippet\/#primaryimage","url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","contentUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","width":780,"height":300,"caption":"PHP Code Snippet"},{"@type":"WebSite","@id":"https:\/\/www.dessol.com\/blog\/#website","url":"https:\/\/www.dessol.com\/blog\/","name":"Web Design &amp; Development Lowestoft Blog| Dessol","description":"Work, news and murmerings","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dessol.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362","name":"dessol","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","caption":"dessol"},"url":"https:\/\/www.dessol.com\/blog\/author\/dessol\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":16,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions\/163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}