chateau theme: how to link header image with homepage

  • Author
    Posts
  • #1219412

    melblogliebe
    Member

    Hi, I’m trying to link my header image in the chateau theme to the homepage and just can’t figure out where exactly I have to change the header.php

    Here’s what my header.php currently looks like:

    <!– HEADER –>
    <div id=”header”>
    <div id=”menu”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘mainmenu’, ‘container’ => ”, ‘depth’ => ‘2’) ); ?>
    </div>
    <div id=”mainTitle”>
    <h1>
    /” title=”« Return to <?php bloginfo(‘name’); ?>’s Homepage”>
    <?php bloginfo(‘name’); ?> <span>~ <?php bloginfo(‘description’); ?></span>

    </h1>
    </div>
    <div id=”search”>
    <?php get_search_form(); ?>
    </div>
    <div id=”mainImage”>
    <?php
    if (!is_404() && !is_attachment()) {
    if (is_singular() && has_post_thumbnail($post->ID) && ($image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘post-thumbnail’) ) && $image[1] >= HEADER_IMAGE_WIDTH) :
    echo get_the_post_thumbnail( $post->ID, ‘post-thumbnail’ );
    else : ?>
    <img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”<?php bloginfo(‘name’); ?>” title=”<?php bloginfo(‘name’); ?>” />
    <?php endif; } ?>
    </div>

    Sorry for the messy layout, hope it is still readable!

    Can anybody help me?
    Thanks, Melanie

    PS: It’s for a blog I’m currently setting up.

    #1219504

    supportbot
    Member

    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.

    #1219758

    The header image for the Chateau theme at WordPress.com is linked by default. See http://chateaudemo.wordpress.com/ for an example.

    You can see the code for the WordPress.com version of the theme here in case that’s helpful: https://wpcom-themes.svn.automattic.com/chateau/

    Head over to http://wordpress.org/support/ if you have further questions about a WordPress.org setup.

The topic ‘chateau theme: how to link header image with homepage’ is closed to new replies.