top of page

Change Admin Icons and Admin Logo

  • Writer: سُلَيْمَان بْن دَاوُوْد
    سُلَيْمَان بْن دَاوُوْد
  • 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
}





 
 
 

Recent Posts

See All
Duplicate Category in Wordpress

The following code helps to duplicate the default wordpress category by help of code. // Add Duplicate option for categories in WordPress...

 
 
 
C#.NET and Its Associated Codes

1- Creating an Desktop Application in C#.NET C# ADO.NET & MySQL MAIN C# and MySQL ADO.NET with Crystals Reports Ready Code 2- Handling...

 
 
 

Comments


© 2020 by syednazrulhassan

bottom of page