Why 3 types of page template in Dynamik Website Builder?
To understand why there are 3 ways to make a page template, you must understand how page templates work.
The page template is just an empty shell.
You could paste content directly inside that shell.
But sometimes it makes more sense to put content in widget areas or hookboxes. This gives you more power, flexibility and control than just pasting content directly into your page template.
After making widget areas and hookboxes you can connect them to your template in different ways.
You can convert widget areas and hookboxes into shortcodes, then paste those shortcodes inside your template.
Or, you can make your widget areas and hookboxes display inside your template by hooking them in to the template using conditional tags and hooks.
Self contained Template
- The content of your template goes inside the template itself.
- Make a template.
- REPLACE the loop. This builds a a new function.
- Your content goes inside this new function.
Template linked to widget areas
Put template content in widget areas. Hook those widget areas into the genesis_loop area of your template.
- Make a template.
- REMOVE the loop.
- Make widget areas.
- Put content inside those widget areas.
- Hook those widget areas into your template on the genesis_loop hook.
Template linked to a hookbox
Put template content in a hookbox. Hook that hookbox into the genesis_loop area of your template.
- Make a template.
- REMOVE the loop.
- Make a hookbox.
- Put content inside that hookbox.
- Hook your hookbox into your template on the genesis_loop hook.