• Resolved frzndaqiri

    (@frzndaqiri)


    The header image is not going to the home page. I have a child theme created but have not modified the code for the header.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Richie KS

    (@rkcorp)

    by default it is not link-able. you will need to edit your child theme header.php line 154

    <a href="#link">
    <div id="custom-img-header"><img src="<?php echo header_image(); ?>" alt="" /></div>
    </a>

    add the opening a href and closing

    Thread Starter frzndaqiri

    (@frzndaqiri)

    That didn’t seem to work. It shows the link but isn’t wrapping the header for some reason.

    Theme Author Richie KS

    (@rkcorp)

    how about

    <div id="custom-img-header"><a href="#link"><img src="<?php echo header_image(); ?>" alt="" /></a></div>

    Thread Starter frzndaqiri

    (@frzndaqiri)

    I managed to sort it out thanks!

    I did put that code into the header php on line 154. It did link to the main page, but it put the header underneath the “coloured menu”.
    Do you have a suggestion where else to set the code? I have tried both the codes, and both do the same…
    https://www.homegymcommunity.com
    The site is still under construction….

    actually i put the code too far up, anyway got your point on the code, but that did not change anything. it still did not link it. Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Header image not linking’ is closed to new replies.