• Hi

    I have added an image to my admin header in the admin-header.php
    The code is as follows the only part I added is the click-admin image at the end.
    How can I make sure this change stays after updates? I have had to add this by hand after every wp version update

    Thank you!

    <img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width="32" height="32" />
    <h1 id="site-heading" <?php echo $title_class ?>>
    	<a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Click here to go to your healingaia blog') ?>"> <span id="site-title"><?php echo $blog_name ?></span>
    	 <img src="images/click-admin.png" /></a>
Viewing 1 replies (of 1 total)
  • Hello!

    I might want to know! I would like if the page is opened in a new window! And after each update to avoid having to write! Someone knows a solution?

    Code:

    function remove_in_admin_header () {
    echo '<img id="header-logo" src="'. esc_url( includes_url( 'images/blank.gif' ) ) .'" alt="" width="16" height="16" />
    <h1 id="site-heading"  "'.$title_class.'">
    	<a target="_blank" href="'. trailingslashit( get_bloginfo( 'url' ) ) .'" title="'. esc_attr_e('Visit Site') .'">
    		<span id="site-title">"'. $blog_name .'"</span>
    	</a>
    </h1>';
    }
    remove_action('admin_head', 'in_admin_header');
    add_filter('in_admin_header', 'remove_in_admin_header');

Viewing 1 replies (of 1 total)
  • The topic ‘Keep changes in Admin Header after update’ is closed to new replies.