WordPress.org

Support

Support » Themes and Templates » I want to insert html code before the header, how?

I want to insert html code before the header, how?

  • 1nteresting
    Member

    @1nteresting

    Short and sweet:

    I want to insert html code before the header, such as a table with images and links in it.

    How?

Viewing 2 replies - 1 through 2 (of 2 total)
  • insert <table> tags with images – but i strongly advise using divs instead

    drewactual
    Member

    @drewactual

    read up on absolute positioning in css… the general idea would be place your content in a #div that has an absolute postioning value- which would be the top. if you do this properly you can render that div in a browser positioned wherever you want it.

    many themes do this, because they would want the content to show up in the code before mundane junk like navigation, (search engine optimization) but you would want the navigation on the top or left/right, right? investigate that concept and you will find all sorts of ways to render div’s wherever you want them.

    I could do it for you, and post the code here, but you would learn nothing that way, right? Little tricks like this is what makes you understand stuff, not just duplicate and make it work…

    happy hunting!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I want to insert html code before the header, how?’ is closed to new replies.