Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: CSS help

  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Thanked 0 Times in 0 Posts

    CSS help

    Hello I'm trying to get my logo image into the header of a wordpress theme is the code for the header:

    * @package WordPress
    * @subpackage Classic_Theme
    <!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 wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    <style type="text/css" media="screen">
    @import url( <?php bloginfo('stylesheet_url'); ?> );

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    <body <?php body_class(); ?>>
    <div id="rap">
    <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>

    <div id="content">
    <!-- end header -->

    Here is the Style sheet:


    #header {
    background: #fff;
    /*background: url('logohqg.png');*/
    border-bottom: 3px double #aba;
    border-left: 1px solid #9a9;
    border-right: 1px solid #565;
    border-top: 1px solid #9a9;
    font: italic normal 230% 'Times New Roman', Times, serif;
    letter-spacing: 0.2em;
    margin: 0;
    padding: 15px 10px 15px 60px;

    #header a {
    color: #fff;
    text-decoration: none;

    #header a:hover {
    text-decoration: underline;

    As you can see it wont pass that img to the header.php
    Any Ideas?

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,250 Times in 2,237 Posts
    How about
    <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php //bloginfo('name'); ?> <img src="path-to-image" alt="a proper text here"/></a></h1>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts