Change Admin Icons and Admin Logo
- سُلَيْمَان بْن دَاوُوْد

- Aug 2, 2020
- 1 min read
function horton_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php echo get_field('logo','option')['url']; ?>);
height:100px;
width:300px;
background-size: 300px 100px;
background-repeat: no-repeat;
padding-bottom: 10px;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'horton_login_logo' );
function horton_login_logo_url() {
return home_url();
}
add_filter( 'login_headerurl', 'horton_login_logo_url' );
add_action( 'admin_head', 'admin_css' );
function admin_css()
{
?>
<style type="text/css">
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
color: transparent ;
background: url('<?php echo get_field('icon','option')['url']; ?>') no-repeat scroll 0 0 / 100% auto;
}
</style>
<?php
}


Comments