WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Putting a logo at the top of my blog (6 posts)

  1. johnscotthaydon
    Member
    Posted 6 years ago #

    Hi all,

    I'm very new at CSS and kinda know html, but must be retarded. I'm trying to put a .jpg logo at the top of my blog in place of where it currently says "CorporateDollar.com - get more corporate sponsors".

    I'm using the plaintxtBlog 2.2 Theme by Scott Allan Wallick, and just need some simple html code to paste into the (header.php).

    The code that is currently in this file reads as follows:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <title><?php bloginfo('name'); ?> <?php wp_title('/'); ?></title>
    <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /><!--LEAVE FOR STATS -->
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" title="plaintxtBlog" media="all" />
    <link rel="start" href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Comments RSS 2.0 Feed" href="<?php bloginfo('comments_rss2_url'); ?>" />
    <link rel="alternate" type="application/rdf+xml" title="<?php bloginfo('name'); ?> RSS 1.0" href="<?php bloginfo('rdf_url'); ?>" />
    <link rel="alternate" type="text/xml" title="<?php bloginfo('name'); ?> RSS 0.92 Feed" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php wp_head(); ?>
    <!-- STYLES PLACED AS SET IN THE THEME OPTIONS MENU -->
    <style type="text/css" media="all">
    /*<![CDATA[*/
    <?php // CSS STYLES AS SET IN THE THEME OPTIONS MENU
    mytheme_basefontsize();
    mytheme_bodyfont();
    mytheme_posttextalignment();
    ?>

    /*]]>*/
    </style>
    </head>
    <body>

    <div id="header">
    <h1 id="title">/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>
    <p id="description"><?php bloginfo('description'); ?></p>
    </div><!-- END HEADER -->

    ______________________________

    What section of this code should I change and what should I change it to?

    Thanks so much, everyone!

    John

  2. kohaku
    Member
    Posted 6 years ago #

    If you want a logo instead of text, try these two things.

    1. If you don't mind losing the description and the link back to your blog, delete the following lines.

    <h1 id="title">/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></h1>
    <p id="description"><?php bloginfo('description'); ?></p>

    2. Go into your style.css file. Find #header. Add this code:

    background: #fff url('pathto/logo.jpg') no-repeat;

    If background is already there, just replace that with the above.

  3. johnscotthaydon
    Member
    Posted 6 years ago #

    Kohaku,

    Thanks. I posted "background: #fff url('pathto/logo.jpg') no-repeat;" into the stylesheet and nothing shows up.

    I replaced "pathto/logo.jpg" with "/corporatedollar.com/wp-content/Images/corpdollarlogo.jpg"

    Again, nothing shows up. Can you still help me?

    Thanks,

    John

  4. kohaku
    Member
    Posted 6 years ago #

    Try 'images/corpdollarlogo.jpg' instead.

  5. johnscotthaydon
    Member
    Posted 6 years ago #

    it worked - thanks!

  6. kohaku
    Member
    Posted 6 years ago #

    Welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic