• Resolved killthejoe

    (@killthejoe)


    Hi, please forgive the post…I’ve spent DAYS trying to figure this out. Today was the day when I really thought I could get it, but I’ve been sitting at my computer all afternoon still with no progress. Everywhere I look, tutorials tell me that header information is contained within Header.php AND stlye.css… I just can’t even do something as simple as change my header image, get rid of the text, and turn the entire image into a link back to the main page, which is essentially the first step for me. All the example code in the tutorials doesn’t match the code that I have, so I can’t even figure out where to look. The file style.css contains two instances of #header and #headerimg … which one do I need to change??

    Anyway, my current header.php code looks like this:

    */
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></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=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <style type=”text/css” media=”screen”>

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !empty($withcomments) && !is_single() ) {
    ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>

    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

    <div id=”header”>
    <div id=”headerimg”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>
    <hr />

    —————————-

    The WordPress codex tutorial tells me to look for code like this contained within the header.php file:

    #header {
    background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/wc_header.jpg”)
    no-repeat bottom center; }
    #headerimg {
    margin: 7px 9px 0;
    height: 192px;
    width: 740px; }

    THIS CODE DOESN’T EVEN EXIST THERE! How can I change what’s not there? Is anyone else like me pulling their hair out over this?

    Thanking anyone in advance for their help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Look for #headerimg in your style.css file. That’s likely where your header image is defined.

    Every theme is different. The codex can’t account for every possible way of doing things. You do have to learn HTML and CSS and a little PHP to be able to do theme modification.

    Thread Starter killthejoe

    (@killthejoe)

    Thanks Otto. I’m not sure why, but before when I was changing my image it kept showing up as just a giant block of a single color. This time, I did the exact same thing and suddenly my image appeared.

    Anyway, I have the image there now. Now can anyone help me to remove the text (blog title/sub-title) and turn the header image into a link back the to home page?

    Thanks much!

    Thread Starter killthejoe

    (@killthejoe)

    Never mind…got it done, though I’m not quite sure why or how.

    Close please =)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can someone … ANYONE please help?!?!’ is closed to new replies.