Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    If you tell volunteers here what theme you are using, then someone familiar with that theme may be able to guide you.

    Go to Appearance -> Editor and then select header.php on the right side.

    Find the below code and see if it matches what you have.

    <a href="<?php echo home_url(); ?>">
    <img id="header-img" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    </a>
    Thread Starter Draqshorul

    (@draqshorul)

    Theme is Gridiculous

    @aaron, pasted the

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

    part after

    <a href="<?php echo home_url(); ?>">

    but it placed another header under the widget i use on the header, and i want it above

    Use http://pastebin.com/ and give us your whole header.php file.

    Thread Starter Draqshorul

    (@draqshorul)

    Try changing

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

    to

    <a href="<?php echo home_url(); ?>"><img id="header-img" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>

    Thread Starter Draqshorul

    (@draqshorul)

    Worked like a charm, Thank you!

    Thread Starter Draqshorul

    (@draqshorul)

    Forgot to check resolved:D

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Header image link to homepage’ is closed to new replies.