Custom layouts are an advanced feature that allows you to create a section with the Hemp Sites Page Builder and “hook” that section into different areas of a page. This is often used to created advanced headers, footers, and 404 page (not found page).
You can add a custom layout under Global Appearance > Custom Layouts.
To add a new custom layout, click on Add New and start creating the layout.
After that, you need to add a title to the Custom Layout ( like you’d do to any post or page ) and choose where you want it to appear on your site. This is done in the Custom Layout Settings area, at the bottom of the Custom Layout editor.
There are two main settings to configure here: Layout and Conditional Logic.
Layout allows you to choose between Header, Footer, 404 Page or Hooks. If you decide on Hooks, extra options will popup where you can select the exact hook you want to have the Custom Layout attached to.
Conditional Logic helps you select what page you want your custom layout to be displayed on.
By default, if nothing is selected the custom layout will appear on all pages of the site. After selecting the layout and conditional logic, you can go ahead and publish your layout. You can then use the Hemp Sites Page Builder to create your custom layout.
Bonus: Magic Tags
Based on the conditional logic selected for your custom layout, different magic tags may be available to display dynamic content, like titles and descriptions.
For the Conditional Logic Archive Taxonomy is Categories ( Category archive ) the magic tags are {title} and {description}
For the Conditional Logic Archive Taxonomy is Tags ( Tag archive ) the magic tags are {title} and {description}
For the Conditional Logic Archive Type is Author ( Author archive ) the magic tags are {author}, {author_description} and {author_avatar}
For the Conditional Logic Archive Type is Date ( Date archive ) the magic tags is {date}