WordPress.org

Ready to get started?Download WordPress

Forums

Layout <div>'s not displaying in right place (4 posts)

  1. illectronic
    Member
    Posted 4 years ago #

    Hi all. I made this page in html using a mockup guide first. It's supposed to look like this: http://www.djneroso.com/test

    The wordpress url is: http://www.djneroso.com
    I checked the order of the div's and the css is right, but when wordpress generates <div id="page"> ends at the header when it should be extended throughout the whole page as the main container div. More importantly, <div id="sidebar"> appears within the blogcontent div, instead of floating to the right within the <div id="content"> container div. It looks really messed up even when viewing through page.php. Any help is appreciated, thanks.

    License: This is my own personal page. The mockup guide did not contain any licenses nor any specifics on how to make it into a wordpress template.

  2. Durgé Seerden
    Member
    Posted 4 years ago #

    I guess you didn't write your own wordpress tags, because else it wouldn''t create it's own divs. Try to learn about the wordpress loop and template tags starting at the wordpress documentation.

    There are some great tutorials about creating a wp theme an example:
    http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/
    Its defenitly not a short tutorial but gives you a great base.

    Greetz,

    Durgé
    Dimics.com

  3. illectronic
    Member
    Posted 4 years ago #

    Thanks so much for the link, but the tutorial is somewhat incomplete. It doesn't mention get_header(); ?> or getsidebar(); ?>

  4. Durgé Seerden
    Member
    Posted 4 years ago #

    Thats right but it's not nessesary:

    You can start of by coding your whole site in the index.php it just gives you an overview of all your code. When it works you cut paste your header sidebar and footer into the new files and then you need to insert the get_header(); get_... tags were you've removed the code.

    It's not nessesary that your theme is devided into the different template files while coding, it's good to devide your theme once you have your basic index page so you can go on by making the single.php, page.php (and all the other) template files.

    Greetz,

    Durgé
    Dimics.com

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags