WordPress.org

Ready to get started?Download WordPress

Forums

understanding code (2 posts)

  1. Polaris
    Member
    Posted 8 years ago #

    I'm starting to understand the workings behind wordpress, the loop, etc, but one thing I can't seem to figure out is how does the browser know where to put the header, footer, sidebar and the like in the right spots? All I see in the code is get this and get that, no layout paramaters.

    thanks in advance.

  2. moshu
    Member
    Posted 8 years ago #

    Those 'get_this' and 'get_that' are functions defined in the WP core files (in the "engine").
    The "layout parameters" are defined in the stylesheet, e.g.
    You use the 'get_sidebar' function which will call for your sidebar.php template file and in there you have various divs and lists... and their look is defined in the style.css.

    Here is a "visual anatomy" how the template files come together to build a theme:
    http://www.transycan.net/blogtest/2005/03/31/visual-anatomy-of-a-wp-15-theme/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.