WordPress.org

Ready to get started?Download WordPress

Forums

Link header to home... help!! (3 posts)

  1. arunsethi
    Member
    Posted 6 years ago #

    This code is already on my header.php doc, shouldn't you be able to click the image at the top of the page to get to the home page? Could someone advise me on how to get the image to link back? Much appreciated :)

    http://www.mortalmethods.com

    `<div id="header">
    <div id="headerimg">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>`

  2. shadow
    Member
    Posted 6 years ago #

    <?php bloginfo('name'); ?> to <?php bloginfo('url'); ?>

  3. jasonashaw
    Member
    Posted 5 years ago #

    This doesn't seem to work. All it did was display the URL over my header background image. It was clickable, but didn't look so good.

    Started with:
    <div id="header">
    <div id="headerimg">
    <h1>/"><?php bloginfo('name'); ?></h1>

    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    Tried:
    <div id="header">
    <div id="headerimg">
    <h1>/"><?php bloginfo('url'); ?></h1>

    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    Didn't work. Tried every variation I could possibly think of... nothing.

    Think it could have to do with this code?
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>

    tried changing bloginfo('stylesheet_directory'); ?> to bloginfo('url'); ?>. Didn't create link and messed up the style.

    Hmmm...... Guess I need to brush up on my PHP... back to the drawing board.

Topic Closed

This topic has been closed to new replies.

About this Topic