I want to add a simple piece of code:
<img src="logo.png">
to the top of the admin menu. I know how to do it if I am just replacing a logo within an already existing class but there is no adminmenulogo class, how do I do this? Am i taking the wrong approach by using the add_action hook? I am new to developing plugins. Thanks.
function my_admin_menu_logo() {
What to put here? :)
}
add_action('admin_menu', 'my_admin_menu_logo');
I found a solution. I just added the image as a background to the adminmenuwrap class and added some padding at the top.
#adminmenuwrap {
width: 160px;
background-color: #e7e7e7;
background-image: url("https://www.google.dk/logos/doodles/2015/new-horizons-pluto-flyby-5641113681526784-res.png");
background-repeat: no-repeat;
padding-top: 50px;