Support » Themes and Templates » Adding a table into header.php

  • Hi

    I have been trying to do this for ages, and although my knowledge is growing in php, i am still struggling with this particular thing.

    This is my blog:

    I have two other main pages on my site:

    I am wanting to reproduce the same header i have for those two pages on my blog.

    So i tried numerous attempts of trying to add the table into the header.php thinking that is should just reproduce the same effect it did on the other two pages.

    This is my table:

    <div id=”header-table”>
    <table width=”993″ border=”0″ align=”center”>
    <td width=”664″><span class=”style19″>WE-ARE-AWESOME.</span></td>
    <td width=”110″><img src=”banners/nights.jpg” width=”107″ height=”95″ border=”0″/></td>
    <td width=”120″><img src=”banners/streets_o.jpg” width=”118″ height=”95″ border=”0″/></td>
    <td width=”81″><img src=”banners/blog_o.jpg” width=”81″ height=”95″ border=”0″/></td>

    How should i do this? Is there an easier way instead of the way i am doing?

    Any help will be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, I would say that tables are a dying breed and that you would benefit greatly from learning to do layout with divs and CSS, which is what your WordPress theme uses.

    That being said, there’s no reason it shouldn’t work. What exactly is wroing with it?

    I notice that your table is 984px wide, but your header div is only 940px wide. That is a problem, you will want to either widen your header, or shrink your table.

    Also, you said you copied your table in there, the HTML. Did you also add the CSS to style the HTML that your are pasting in there? You should be sure to add that to your stylesheet.

    I noticed that you are using a font family for your text in the table, but only have one font entered:


    Corbel is not a font that you can expect everyone to have, I would recommend choosing your backups, rather letting it use the default for the theme or the brower.

    Something like this:


    I suggest checking out the article in the codex about Designing Headers, it should be a big help!


    Could you please help me with my question about IE problems in the post …I’ve seen your answers before and you’re so thorough that you may be able to really help me…I’m lost.

    Thanks so much, Courtney

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a table into header.php’ is closed to new replies.