• How do I make the banner so it links back to my starting page?

    I removed the standard Title and description that overlapped the banner and was controlled from the wordpress admin panel.

    I guess I should just add a href tag around the code that “gets” the banner image?

    Where is this code and how should I add the href=”…..” for it to work?
    Couldn’t get it to work by editing the header.php..

    my site: https://www.kobofos.se

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kobofos

    (@kobofos)

    Sorry I can’t figure it out.

    This is how my code locks right now in header.php located in /wp-content/themes/piano-black/ . (the favicon stuff is the only thing I tried to change so far.. dunno if that’s even right but it works.. nvm that)

    <div class="header" onclick="location.href='https://www.kobofos.se/';"
    style="cursor: pointer;"></div>
      <div id="pngfix-left"></div>
      </div>
      <div id="header">
    <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
       <?php if ($options['use_logo']) : ?>
       <div id="logo_image">
        <h1><a href="<?php echo get_option('home');?>/"><img src="<?php bloginfo('template_url'); ?>/favicon.ico" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a></h1>
       </div>

    So how do I make it clickable?
    Thanks!

    EDIT: Also, I took away the title that you fill out in the admin panel since I wanted my own text in the banner.

    Thread Starter kobofos

    (@kobofos)

    I’ve edited the header.php
    from <div class="header">
    to
    <div class="header" onclick="location.href='https://josharris.com/';" style="cursor: pointer;"></div>
    with no results.

    Hey I’m having the same problem (pancakesandbeer.com), were you able to resolve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I make the banner a link?’ is closed to new replies.