WordPress.org

Support

Support » How-To and Troubleshooting » Need help linking header to homepage

Need help linking header to homepage

Viewing 1 replies (of 1 total)
  • Christine Rondeau

    @crondeau

    Volunteer Forum Moderator

    Hi there,

    If you look at your theme files you’ll see in the header.php this line:

    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    You could change this to:

    <a href="<?php echo home_url( '/' ); ?>"><img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" ></a>

    Of course it would be better if you made a child theme. If you make changes to the theme and there’s an update, your changes may get lost, but I’m not planning on making any changes soon. If I do, I’ll make sure to add an option to link the header image. I should have thought about that. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Need help linking header to homepage’ is closed to new replies.