template-functions.php 448 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
<?php
function mio_admin_logo() { ?> 
	<style type="text/css"> 
		body.login div#login h1 a {
		 	background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/wordmark.png');
		 	width: 200px;
		 	background-size: 200px;
		} 
	</style>
<?php }
Benthe Kuijpers's avatar
Benthe Kuijpers committed
11
12
13
14
15
16
17
add_action( 'login_enqueue_scripts', 'mio_admin_logo' );

function cc_mime_types($mimes) {
 $mimes['svg'] = 'image/svg+xml';
 return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');