• Resolved sg16

    (@sg16)


    I am trying to make the header image a link to redirect back to the homepage from other pages at the website.

    I have had a look in the codex, and at multiple queries in the forum addressing the same issue, however am struggling to make sense of it as my header code is very different from the ones used in the examples (very new to wp).

    My code now looks like this (got it from a youtube tutorial, to allow for header image change in the wp login):

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

    Any comment on how to make the header a link with this in mind would be much appreciated!

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter sg16

    (@sg16)

    Figured it out! Just copied the img src into the codes provided in the context – fairly logic, I’m just a bit inexperienced with all of this !

Viewing 1 replies (of 1 total)
  • The topic ‘Header image as link to homepage’ is closed to new replies.