understanding code (2 posts)

  1. Polaris
    Posted 9 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
    Posted 9 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:

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.