WordPress.org

Support

Support » How-To and Troubleshooting » Been trying for hours header problem.

Been trying for hours header problem.

Viewing 15 replies - 1 through 15 (of 15 total)
  • plz can anyone help as i have a deadline for the site

    in your themes .css it should call a header image in the header tag…Just change the url to point to the other image you want to display.

    *hehe*, and you really think people will help you any faster if you get impatient? =:-)

    Anyway – it took me about 25 Minutes to read your question, look for the original template and “find” the solution:

    open index.php in your theme’s directory and look for
    /* BEGIN IMAGE CSS / – this should be around line 15-20 – and edit it to fit your needs.

    Regards,

    — FHT

    This is whats in my index.php

    <?php get_header(); ?>

    <div class=”primary”>

    <?php include (TEMPLATEPATH . ‘/theloop.php’); ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Look in header.php – sometimes that sort of thing is stuffed into inline css (ugh) in the header file….

    i cant find it in header.php

    Although I use another Theme I did it by adding

    #header {
    background:#fff url(img/rap.jpg) center repeat-y;
    width:760px;
    margin:0 auto;
    }

    to the HEADER-section in the file style.css as Ennis already said above.

    Maybe this one works for you (don’t forget to alter the filename and location!)?

    I get this
    /* BEGIN IMAGE CSS /http://www.footballmanagerradio.com/wp-content/themes/k2/styles/vader/mustafar.jpg
    Right under the blue header

    Its because its not inclosed in any tags. Either remove it from the header.php file or the index.php or the .css file, or enclose it in tags so it works.

    how do you enclose it in tags

    just leave the header.php “alone” (remove the changes!) and go to the header-section in your stylesheet and paste the code I gave you above. Don’t forget to put the correct values there (especially image-size, -path, -name)

    Worst that can happen is that it doesn’t work 🙂

    usually an image is enclosed like the following
    <img src=http://www.footballmanagerradio.com/wp-content/themes/k2/styles/vader/mustafar.jpg />

    with quotes (“) placed after the equals sign (src=”) and after the extension .jpg (.jpg”). I never put them in the above tag cause it would place that image in this reply. 😛

    @ jayoel,

    i would recommend getting the original default theme (K2), which has an image in it already and starting fresh! the custom theme you are using (vader, a variant of kubrick) has no img in it.

    so go with the default kubrick theme. in it, they separate out the header img reference in a file located in a place like:
    wp-content/themes/k2/styles/light.css

    and you will be able to find the CSS at:
    http://footballmanagerradio.com/wp-content/themes/k2/styles/light.css

    and it is controlled with this in the light.css:

    #header {
    background: url('/wp-content/themes/k2/invader/logo.png') center center no-repeat !important;
    }

    search in the light.css and look for the URL to the img for the header, and change it to where your image is.

    here is more info on this:
    http://codex.wordpress.org/Designing_Headers#Changing_the_Header_Image

    ps- you probably noticed this, but you misspelled ‘forum’

    best of luck.

    thats what I did and I got this under the blue header
    /* BEGIN IMAGE CSS /http://www.footballmanagerradio.com/wp-content/themes/k2/styles/vader/mustafar.jpg

    Congratulations – you did it! 🙂

    So, what was the problem in detail?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Been trying for hours header problem.’ is closed to new replies.