• Hey

    I wanted the header image of my page to redirect to the main page when clicked.
    However all of the solutions I’ve found don’t work with the way the Storefront theme has its header set up:

    <header id=”masthead” class=”site-header” role=”banner” <?php if ( get_header_image() != ” ) { echo ‘style=”background-image: url(‘ . esc_url( get_header_image() ) . ‘);”‘; } ?>>

    I was wondering if anyone knew how I could implement a function that would make the header redirect to the home page when clicked?

    Any help would be greatly appreciated.
    Al

Viewing 1 replies (of 1 total)
  • Hey,

    It’s not possible because Storefront adds the header image as a background. To make it clickable you’d need to add the image inline. That would mean none of the header content would overlay it though.

    If you’re trying to add a logo you’d be better off using the logo feature that is supplied by the Jetpack plugin.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Can't make the header image clickable.’ is closed to new replies.