Page Templates
Weaver Page Templates
Weaver provides you with several additional page templates for creating static pages. Users of the previous Weaver version should note that because of the new, flexible sidebar layout options, the need for several page templates is no longer needed or provided.
- Default – The default template uses the standard page formatting defined by your settings. The default sidebar layout will use the standard Static Page layout, but you can use the Per Page options to override the default layout.
- Blank – Provides a totally blank content area inside the #wrapper div. (This means the page will match the overall look of your site.) It lets you provide totally custom HTML on a page. It doesn’t show the page title you set when creating the page. It does show page top and bottom widget areas and comments unless you explicitly hide them on a per page basis. You can optionally hide the header and footer areas using the check boxes on the per page options. This template is good for entering raw HTML using the HTML editor tab. This page will use the default widget areas for a standard page, but this can be overridden in the per page options.
- Raw – This is an even more “bare-bones” version of Blank. Instead of being wrapped in the #container and #content classes, the post’s content will be wrapped in a <div> named ‘#page-raw’. There will be no additional styling on the #page-raw, so the content won’t have any margins or padding as defined by the normal #container or #content divs, but will instead have the margins/padding of the #wrapper. There will be none of the normal sidebars or widget areas displayed, nor are any of the HTML insertion areas included.
- Two Column Content – Allows you to create a content page with two columns of content using the standard <!–more–> page tag (entered using the page break icon from the Visual Editor). If you break the content into more than two areas, they will automatically be placed vertically (in other words, you can use more than one <!–more–> tag.
- iframe, full content width – This template is designed especially for using an iframe external site embed on a regular static page. If you have an old site in HTML that you don’t want to convert to WordPress, or some other site you want to take on the appearance of your site, then this is the page template for you. It hides the standard page title so the external site can take the full page space. You can enable comments, if you wish. Use the Per Page options to select a sidebar layout – most likely “none”.
The easiest way to add an iframe is with the [iframe] shortcode. Or you can also embed an external site by simply adding an iframe HTML command to your page:
<iframe src=”http://example.com” style=”width:100%;height:600px;border: 0px”></iframe>
(You’ll need to use the “HTML” page editor view to add this command, and you can include other content as well for titles or introduction material.) You can adjust the height to best display the external page, as well as the width if you want. The page will continue to fill the full width even if you change the overall site width. While this template is designed for using iframes, it really can be used however you like – kind of like the Blank Content Area template, but allowing comments. - Page with Posts – When used with no options set, this page will display all your posts exactly the same way as the default blog post page. When used in the default mode, the main use for this feature would be to hide the Home menu item, and put your posts on a page with your own title. (You can hide the title from the page using the Per Page options.) But what is really great is that you can create a filter which controls just which posts will be displayed – specific categories, for example.Because these are in fact true static pages with automatic inclusion of filtered posts, you can enter whatever content you want in the content edit box, and that content will appear above the posts that are displayed.The “Page with Posts” template options won’t be displayed in the per page box until after you’ve selected the “Page with Posts” template in the Page Attributes box, and saved the draft or published the page.
Then you will get the options needed to filter the posts to display, as well as options to control how the posts are displayed (full, excerpts, title only). You can also display the posts in 1, 2, or 3 columns. In the previous version of Weaver, each of these options was implemented as a separate page template instead of a simple per page option.
While the Page with Posts template allows you to easily display posts on a page, you can also add posts to any static page using the
No posts found. - Sitemap – This page template will display a simple sitemap, consisting of a list of all ages, monthly post archives, all categories, and the tag cloud. You can add content to the page that will appear above the sitemap. See Tweaking the SiteMap page template for a description of tweaking the SiteMap.
Other options for creating custom pages
You can provide additional customization for a given page using the Extra Per Page Options described below. For example, creating an entire custom header can be accomplished by checking the “Hide Entire Header” per page option, and including a Custom Field called “preheader” that has the code for the custom header.
Any page can be made into a one full column page simply by setting the “No sidebars, one column content” sidebar layout in the per page option box.