Help with Header (SiteName Description) and Header Image.

  • Unknown's avatar

    I’m trying to make my own wordpress theme from scratch, and I’m having trouble making it so I can have a custom image + it takes away/adds the SiteName/Description. I have code in my header that points to a function in the functions.php.

    In the header.php..
    <div id="header">
    <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />

    </div>
    …and in the functions.php
    $headerarg = array(
    'width' => 900,
    'height' => 130,
    'default-image' => get_template_directory_uri() . '/images/header.jpg',
    );
    add_theme_support( 'custom-header', $headerarg );

    What am I missing? Basically the text doesn’t show up (there is no call for it) but if I add a call for it, I can’t have one or the other.
    What is some regular code that’s used for this?
    THANKS!

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Help with Header (SiteName Description) and Header Image.’ is closed to new replies.