Need to change my header to image not text?

Discussion in 'PHP' started by smivers.com, Oct 18, 2009.

  1. #1
    In wordpress I want to insert an image in the header instead of Words. Could you please advise on how to do this.

    My coding at the moment ith text header is.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
        <title><?php if (function_exists('seo_title_tag')) { seo_title_tag(); } else { bloginfo('name'); wp_title();} ?></title>
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
        <?php wp_head(); ?>
    </head>
    
    <body>
    
    <div id="wrapper">
    
        <div id="header">
            <h1 id="logo"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a><span><?php bloginfo('description'); ?></span></h1>
            <ul id="top-nav">
                <li<?php if(is_home()) echo ' class="current_page_item"' ?>><a href="<?php bloginfo('url'); ?>/">Home</a></li>
                <?php wp_list_pages('title_li=&include=2,5'); ?>
            </ul>
            <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
                <input type="text" name="s" id="s" value="Search Keywords" onfocus="document.forms['searchform'].s.value='';" onblur="if (document.forms['searchform'].s.value == '') document.forms['searchform'].s.value='Search Keywords';" />
                <input type="submit" id="searchsubmit" value="Search" />
            </form>
            <ul id="nav">
                <li<?php if(is_home()) echo ' class="current_page_item"' ?>><a href="<?php bloginfo('url'); ?>/">Home</a></li>
                <?php wp_list_pages('title_li=&include=3,4,6'); ?>
            </ul>
        </div><!-- end #header -->
    
        <div id="container">
            <div id="content">
    Code (markup):
     
    smivers.com, Oct 18, 2009 IP
  2. LoCo

    LoCo Well-Known Member

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #2
    This part is the one you need to change
    for example like so
     
    LoCo, Oct 18, 2009 IP
  3. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1 min will try now
     
    smivers.com, Oct 18, 2009 IP
  4. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It didnt work? :(
     
    smivers.com, Oct 18, 2009 IP
  5. LoCo

    LoCo Well-Known Member

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #5
    must be a mistake on your end, let me know the url of the blog
     
    LoCo, Oct 18, 2009 IP
  6. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Check how it has come out, I will leave it on there for you to see.
     
    smivers.com, Oct 18, 2009 IP
  7. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    blogblizard.com is the URL, if you wish I will give you login via pm?
     
    smivers.com, Oct 18, 2009 IP
  8. LoCo

    LoCo Well-Known Member

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #8
    ok as far as i can see the image is there now, you just need to change your css to relocate the image

    look in your css file for #logo

    current:
    should look like this:

    you could and probably should also specify the width and height of the logo

    you can also remove the tagline from the logo (the part that should be removed is marked in red)

     
    LoCo, Oct 18, 2009 IP
  9. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How can I make it so there is anchor text on the image?
     
    smivers.com, Oct 18, 2009 IP
  10. LoCo

    LoCo Well-Known Member

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #10
    what do you want now, image or text ?

    and to get an anchor text on an image you have to put the image as a background via css and then simply put text on it, whatever your porpuse with that is, cause you dont need to put anchor text on your logo.

    you put anchor text links on other sites that will ink to you with that anchor.
     
    LoCo, Oct 18, 2009 IP
  11. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Basically, I still want the site description to show up through google, because I have removed it by putting an image there. And that CSS still didnt work take a look :(
     
    smivers.com, Oct 18, 2009 IP
  12. smivers.com

    smivers.com Peon

    Messages:
    560
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Take a look now, How do I get that Home bit higher up?
     
    smivers.com, Oct 18, 2009 IP