{"id":3743,"date":"2017-11-06T13:58:00","date_gmt":"2017-11-06T13:58:00","guid":{"rendered":"https:\/\/purelysupp.com\/wordpress\/?p=3743"},"modified":"2022-10-17T16:13:25","modified_gmt":"2022-10-17T16:13:25","slug":"adding-a-custom-wordpress-dashboard-logo","status":"publish","type":"post","link":"https:\/\/purelysupp.com\/wordpress\/code-snippets\/adding-a-custom-wordpress-dashboard-logo\/","title":{"rendered":"Adding a Custom WordPress Dashboard Logo"},"content":{"rendered":"\n<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to customize the WordPress Dashboard Logo.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\/images\/custom-logo.gif where \/images\/custom-logo.gif is the location of your themes images files and your logo filename.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/hook the administrative header output\nadd_action('admin_head', 'my_custom_logo');\n\nfunction my_custom_logo() {\necho '\n&lt;style type=\"text\/css\">\n#header-logo { background-image: url('.get_bloginfo('template_directory').'\/images\/custom-logo.gif) !important; }\n&lt;\/style>\n';\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to customize the WordPress Dashboard Logo. \/images\/custom-logo.gif where \/images\/custom-logo.gif is the location of your themes images files and your logo filename.<\/p>\n","protected":false},"author":1,"featured_media":3806,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","iawp_total_views":1,"wds_primary_category":56,"footnotes":""},"categories":[56],"tags":[110,247,241],"class_list":{"0":"post-3743","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-code-snippets","8":"tag-code","9":"tag-dashboard","10":"tag-wp-logo","11":"entry"},"featured_image_src":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/matrix-source-code-600x400.jpg","featured_image_src_square":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/matrix-source-code-600x600.jpg","author_info":{"display_name":"Jack Alltrade","author_link":"https:\/\/purelysupp.com\/wordpress\/author\/jacka11trade\/"},"_links":{"self":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3743"}],"version-history":[{"count":2,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3743\/revisions"}],"predecessor-version":[{"id":10751,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3743\/revisions\/10751"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media\/3806"}],"wp:attachment":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}