Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to change on the backend from:

Appearance -> Header

To

Appearance -> Logo

But the Changing Admin Menu Labels answer didn't help so far.

Any new tip?

Thanks

share|improve this question
add comment

2 Answers

You could try that with the gettext filter in the following manner.

function rename_header_to_logo( $translated, $original, $domain ) {

    $strings = array(
        'Header' => 'Logo',
        'Custom Header' => 'Custom Logo',
        'You can upload a custom header image to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.' => 'You can upload a custom logo to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.'
    );

    if ( isset( $strings[$original] ) && is_admin() ) {
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }

    return $translated;
}

add_filter( 'gettext', 'rename_header_to_logo', 10, 3 );

You might want to check that the text doesn't conflict with another "header" text somewhere else.

share|improve this answer
    
Indeed it conflicts with others "header" text. Unfortunately, gettext is not the way to go. –  Daniel Mar 24 '12 at 13:54
add comment

When no hook is available, jQuery it...

add_action( 'admin_footer', 'wpse_46677_change_menu_item' );

function wpse_46677_change_menu_item()
{
    ?>
        <script type="text/javascript">
            jQuery(document).ready( function($) {
                $("#menu-appearance").find("li:contains('Header')").html('<a href="themes.php?page=custom-header">My Text</a');
            });     
        </script>
    <?php
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.