WordPress.org

Forums

Link in Header ---- i'm completely new to this (7 posts)

  1. verbality
    Member
    Posted 8 years ago #

    I understand how to swap in a header image of my choice but how do i remove the link over my header image?
    The big white one that spells out my domain name.

    Sorry if this has been asked before.

    -Allan

  2. Riboflavin
    Member
    Posted 8 years ago #

    To remove the link, find this line of code in header.php:

    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

    Remove that line completely and that should remove the title and link.

  3. verbality
    Member
    Posted 8 years ago #

    Thank You, worked great.

    -Allan

  4. DaBluez
    Member
    Posted 7 years ago #

    I'm new to this too and would like some help. That advice worked great for the url link but there is still a/my site name in the header that I would like to get rid of. Not sure where in the header.php it would be, if it's even in there. I noticed that WP creates both an URL link and a site name in the header, regardless of which flavor of theme is used. That includes the default one. And it will be on top of any header image too. Any help would be most appreciated. Tnanks!

  5. DaBluez
    Member
    Posted 7 years ago #

    I found it on an older post, worked fine:

    >It's in your theme directory: header.php
    >Search for <?php bloginfo('name'); ?> and remove it.

    Thanks!

  6. DaBluez
    Member
    Posted 7 years ago #

    ugh, I spoke too soon. That worked for one theme that had just a space for a header and the header image was down below. But for most themes that have header images it doesn't. The theme is InBloom: http://www.freewpthemes.net/themes/previews/inbloom/?theme=inbloom

    and the header.php has:

    <div id="logo">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <h2><?php bloginfo('description'); ?></h2>
    </div>

    I tried all combinations I could think of and while I could get the url link removed, it still left the name in the image. Romoving both url link and name also removes the header image. Help please!

  7. DaBluez
    Member
    Posted 7 years ago #

    Resolved

Topic Closed

This topic has been closed to new replies.

About this Topic