• I am trying to built custom theme based on the functions from the default theme “TwentyTen”
    The default theme has the option to add custom header images, instead of using header images I placed these codes for the logo i.e. giving user the option to upload his logo or use Site Name (text).
    All adjustments are done and it works perfectly fine.

    BUT ONE SMALL PROBLEM:
    The the Appearance section at WP-Admin, the option page shows “Header”.
    I searched the function.php file to find where I can change the name of the page from “Header” to “Logo” but I found nothing.

    Can someone guide me please how to do so.

Viewing 4 replies - 1 through 4 (of 4 total)
  • It comes via add_custom_image_header in functions,php – which in turn calls a core file (wp-admin/custom-header.php). In order to change the menu item name, I think you’d need to effectively create your own custom header script/system – although you might be able to do it via a custom admin callback.

    http://codex.wordpress.org/Function_Reference/add_custom_image_header

    Thread Starter czone

    (@czone)

    Is there a way to pass a filter to change the name and replace the word “Header” from that option page?

    I did see a trick on some website where they replaced the WP-Admin footer with custom text & logo

    ——-
    Actually I am not good with the codes 🙁
    just a front hand designer trying to make themes for WP

    All I can suggest is that you investigate a custom admin callback. I can’t recall if it allows you rewrite the menu name or not (I suspect not, actually).

    Thread Starter czone

    (@czone)

    ok, thanks,
    I will give it a try.

    Can you help me with this code ?

    <div id="logo">
    <a href="<?php echo home_url( '/' ) ?>">
    <?php if (header_image()){ ?>
    <img src="<?php	header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php } else { ?>
    <h1><?php bloginfo( 'name' ); ?></h1>
    <?php } ?></a>
    </div>

    PROBLEM:
    condition for “if (header_image()” is not suitable here. What I wish to do is if the user remove the Logo from WP-Admin then the LOGO DIV should display site title text i.e. bloginfo(‘name’)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing name of Theme Page in Admin’ is closed to new replies.