PoliMorf Theme: How To Change Layouts Easily.

If you want even more detail, read the PoliMorf User Guide.

You can add more elements to the basic page or post layout by using extra tags. These tags can add elements above and below the main content, as well as adding a sidebar. You can add these elements theme-wide or individually.

Like with the post format, the basic page list format contains schematic tags (starting with "///") and schematic commands (starting with "%%" and ending with "::"):

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%COMMENTS::
///FOOTER:
%%DEFAULT::

At the theme options level, you can add schematic commands to the Before Main, After Main and Sidebar format option boxes. These will then be shown site-wide unless you individually specify a page or post format using the list above.

Say that you wanted to add a sidebar with some widgets (set in the Widgets area of the WordPress Admin). You would add a "///SIDEBAR:" tag after the Main tag and before the Footer. In the example below you are using Widget Area 2. There are 5 widget areas by default:

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%COMMENTS::
///SIDEBAR:
%%WIDGETS::2
///FOOTER:
%%DEFAULT::

Now say you wanted to add more content below the Main area that also has a Sidebar. If this content is to fit across the full screen, you can use the "///AFTER:" tag. In the next example you have added Widget Area 3.

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%COMMENTS::
///SIDEBAR:
%%WIDGETS::2
///AFTER:
%%WIDGETS::3
///FOOTER:
%%DEFAULT::

You now want to add a Menu. You have set a menu in the WordPress Admin (in Menus) and it is called "Page Menu 1". You want to add this before the Main content and it will stretch over the full screen.

Use the "///BEFORE:" tag and the "%%MENU::" command. The keyword "wpmenu" is able to add the menu by name.

///HEADER:
%%DEFAULT::
///BEFORE:
%%MENU::
wpmenu={ name="Page Menu 1" }:
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%COMMENTS::
///SIDEBAR:
%%WIDGETS::2
///AFTER:
%%WIDGETS::3
///FOOTER:
%%DEFAULT::

Remember if you only want to add more content above and below the primary content in your Main area, and have it placed relative to the layout, you just add elements above and below it.

Layouts can be manipulated using simple commands and a few lines of text. At the moment, PoliMorf only uses a single sidebar so you would have to get a bit more creative for more complex designs.

Refer to the PoliMorf User Guide for more detail.

Pages and Posts

Layouts

Remote

Understood
This website is using cookies. More details