Support » Fixing WordPress » replace header in classic theme?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The search here works great for questions like that. 🙂

    Here’s a good place to start: Designing_Headers

    Indrek

    (@indrek)

    That`s a good text there really. But only if you are using default theme!
    About the classic theme it only says: “The styles for the header image for the Default or Kubrick WordPress Theme, and any Theme based upon that Theme, are more complicated to change than those for the Classic Theme.“
    Good to now, but really not very helpful.

    The problem with people how don’t understand css and php is, that its really simpel to delete a line of code or to change it, but Im out of the game if it comes to actually write the code.
    So maybe some one knows some other link? A link about the classic theme would be really nice… 

    Indrek

    (@indrek)

    I tried to figure it out, but have some problems so maybe someone gould help a littel bit.
    I like to call it the “axe method”:

    I did replace in the classic theme header.php the line:
    <h1 id=”header”>
    “><?php bloginfo(‘name’); ?>
    </h1>

    with the default theme header lines:
    <div id=”header”>
    <div id=”headerimg”>
    <h1>
    “>
    <?php bloginfo(‘name’); ?>

    </h1>
    <div class=”description”>
    <?php bloginfo(‘description’); ?>
    </div>
    </div>
    </div>

    and from the classic theme style.css I deleted the header lines:
    #header {
    background: #90a090;
    border-bottom: double 3px #aba;
    border-left: solid 1px #9a9;
    border-right: solid 1px #565;
    border-top: solid 1px #9a9;
    font: italic normal 230% ‘Times New Roman’, Times, serif;
    letter-spacing: 0.2em;
    margin: 0;
    padding: 15px 10px 15px 60px;
    }

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

    I made in the css the necessary scanges, like background color and size, but there is one big problem how to disable the header text from showing? I can`t use the method described here http://codex.wordpress.org/Designing_Headers, since my style.css does not contain h1 anymore at all. Any successions?

    And the second strange thing is a narrow box surrounding the picture, I could not find anything causing it the style.css?

    the blog is here http://tartumuliseb.net

    Indrek

    (@indrek)

    Part of the solution:
    Change in the style css the line:

    #header {
    background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/wc_header.jpg”)
    no-repeat bottom center; }

    To this:

    #header {
    background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/wc_header.jpg”)
    no-repeat bottom center; }
    font-size: 0;
    text-indent: -1000px;

    but I still hawe a narrow border surrounding the picture, any idea what is causing this?

    Indrek

    (@indrek)

    It turned out that the border was on the picture 😛
    So the above described is really a working method to get an image to the classic themes header.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘replace header in classic theme?’ is closed to new replies.