WordPress.org

Ready to get started?Download WordPress

Forums

How do I link a logo? ...and... (2 posts)

  1. petedutcher
    Member
    Posted 4 years ago #

    Okay, I am using a theme that displayed the text title with no logo. I figured out how to get the logo to show. But I don't know how to link it.

    My stylesheet css file reads as:

    .blogname {
    	width:300px;
    	font-family:Trebuchet ms ,Century gothic,Verdana,Tahoma,sans-serif;
    	margin:40px 0 0 0px;
             float:right;
             background:url(images/logo.png);
    	background-repeat:no-repeat;
    
    	}
    
    .blogname h1  {
    	font-size:1px;
    	padding:0 0 0px 0;
    	font-weight:bold;
    	color:#cacccd;
    	text-align:right;
    	margin:100px 0 0 100px;

    The problems I've run into were that the text appeared with the logo...so I reduced the text size to 1 pt as a temp fix.

    But my real goal is to have it display the logo in place of the text title, and to link the logo back to the homepage at sarahandsuggest.com.

    Note: I added the "background:url(images/logo.png);" to the above code.

  2. petedutcher
    Member
    Posted 4 years ago #

    Also, I opened the header.php file and this is the code to display the title:

    <title>
    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?>
    </title>

    Also in header:

    <div id="wrapper">
    
    <div id="top">
    <div class="blogname">
    	<h1><a href="<?php bloginfo('siteurl');?>/" title="<?php bloginfo('name');?>"><?php bloginfo('name');?></a></h1>
    	<h2><?php bloginfo('description'); ?></h2>
    </div>
    
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.