WordPress.org

Ready to get started?Download WordPress

Forums

I can SEE my header image peeking out from a big white block.... (10 posts)

  1. pennyplastic
    Member
    Posted 5 years ago #

    I have been working all day trying to get a header image up to replace the Kubrick header.

    I have saved my file as kubrickheader.jpg and replaced the other image in my database, and I've mucked around with the code at least 50 times. Now I can see the image peeking out from behind a white space.

    What's going on?

  2. pennyplastic
    Member
    Posted 5 years ago #

  3. pennyplastic
    Member
    Posted 5 years ago #

    This is what my header code currently looks like....

    `<?php
    /**
    * @package WordPress
    * @subpackage Default_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('«', 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('/images/header-copy.jpg'); ?>/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 />

  4. rizaldy
    Member
    Posted 5 years ago #

    on admin page navigate to your kubrick header image and color, click advance, and remove upper and lower color. I think that is the problem.

    but i see that you already messing with the code, try to upload the fresh kubrick theme and change the kubrickheader.jpg with your version and check header image and color on your admin panel if there's a same white(#ffffff) on upper and lower color

    i hope that solved your problem penny...:D

    -A-r-

  5. pennyplastic
    Member
    Posted 5 years ago #

    Thanks -A-r-

    I followed the advice on this thread:

    http://wordpress.org/support/topic/151749?replies=2

    And while my header shows up under Appearance/Header Image & Color, it still does not show up on my site, and now there is a big blue box.

    I tried reactivating the Kubrick theme, but no luck.

    Is there any other way to restore back to the correct code? I am thinking I messed it up somehow....

  6. pennyplastic
    Member
    Posted 5 years ago #

    <?php
    /**
    * @package WordPress
    * @subpackage Default_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('«', 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('/images/header-copy.jpg'); ?>/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>

  7. rizaldy
    Member
    Posted 5 years ago #

    did you have the fresh wordpress2.7.1.zip ?
    if you do, extract the zip and search for default folder inside wp-content/themes. the default folder is actually the kubrick theme.

    if you find it,
    - change your theme to any other theme available
    - and then delete the default folder on your remote site
    - upload the fresh default folder that you extract to wp-content/themes
    - try to reactivate from admin panel

    if everything goes smoothly the kubrick theme will be restored to default configuration.

    or... if you dont want to delete anything

    just rename default folder from extracted zip and upload it to wp-content/themes. and activate it from your admin page

    goodluck penny :D
    wordpress is fun don't get to stressed out about it :D:D
    -A-r-

  8. pennyplastic
    Member
    Posted 5 years ago #

    I am trying to enjoy myself! This is something that I know should be so easy and it's just frustrating :-) But I GREATLY appreciate your help.

    I did what you said (manually, as I haven't figured out how to use an FTP yet) and it worked for the most part.

    The only issue now is that there are bits of blue poking out of either end of the header image, and I don't want to mess with the code again.....

    Any clue how I can resolve this?

    Many thanks.

  9. pennyplastic
    Member
    Posted 5 years ago #

    I reformatted the image file so it was the exact same dimensions as the original 760 x 200.

    This worked, but I am not sure why it's hanging off the edges. I am sure I can resolve this in the code - I just thrilled to finally see a semi-decent looking header. Now I can play with it.

    Thank you so much!!!

  10. rizaldy
    Member
    Posted 5 years ago #

    it's hanging from the edge because, the original kubrickheader.jpg had a border on each side, try to put your image ontop the original kubrickheader, but don't mess with the border.

    I hope it solved the hanging problem :D

    Happy blogging penny :D

    -A-r-

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.