Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Formating with wpmu theme

That’s right. A typical template file in your theme will be like this: bb_get_header() loads header.php from your theme’s folder or otherwise the default kakumei one (header.php should contain what is now in your second div called header), then there’s a bunch of content, and then bb_get_footer() will get the sidebar and the footer elements in footer.php. You won’t need to modify this or add any files or anything like that to make your theme, at least in all probability.

Because header.php and footer.php are always called, the unchanging HTML and php should all be in there.

header.php

html
head
//some head stuff, links and meta etc
/head
body
wrap
header
//header HTML for your logo etc
/header

whatevertemplate.php

.
content
//content HTML and php
/content

footer.php

.
sidebar
//sidebar HTML and stuff
/sidebar
footer
//footer HTML and stuff
/footer
/wrap
/body
/html

I hope that’s clear, it’s a little late so I might have some tired logic. This is pseudoHTML – body corresponds to <body>, but wrap corresponds to <div id="wrap"> and sidebar = <div id="sidebar"> etc. I hope that’s okay.

So there are usually only three files that directly contribute to the output of the forum. Most of the HTML you’re messing about with should go in header.php or footer.php.

bb_get_header() and bb_get_footer() deal with all the mucky stuff for you, you don’t need to ‘call’ them (if I’m understanding you right) from the main template individually. Just make sure they’re proper HTML inside header.php and footer.php.

Skip to toolbar