• Resolved stylep

    (@stylep)


    Hi!

    I know this far from calling it a hack but my theme has a logo in the header and I’m trying to make it a link (to the front page) without php or html experience.

    Here’s how that part in my header.php looks like:

    <span class=”logo”><img class=”img-responsive” src=”<?php echo $mt_logo; ?>” width=”40″ alt=”” ” /></span>

    So, where or how should I put in a href in here?

    Thanks guys for helping me out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m using site_url() below to link to your home page, but you can replace that href with whatever you want:

    <span class="logo"><a href="<?php print site_url(); ?>"><img class="img-responsive" src="<?php echo $mt_logo; ?>" width="40" alt="" " /></a></span>

    Thread Starter stylep

    (@stylep)

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make a logo a link in my header’ is closed to new replies.