REFERENCE

Theme Builder templates

Six templates carry the parts that repeat.

The header, the footer, the journal archive, a single post, the landing page and the 404 page are all built once in Divi's Theme Builder and applied everywhere they are needed. Edit them there and the change lands on every page at once.

THE TEMPLATES

What each one covers

SIX TEMPLATES

Default   —   the site header and footer, used by every page that has no template of its own

Blog   —   the journal archive - the header band and the six-post grid

Single Post   —   one article - title, framed featured image, the text, an author note, comments, and the previous and next links

Category Archive   —   the same shape as the journal page, with the category's own name and description at the top

Landing Page   —   the sales page, with its own slim header and footer in place of the site's

404 Page   —   the not-found page, with the site header and a footer of its own

The Divi Theme Builder showing the six Kaya templates

THE HEADER

One module does the whole bar

Logo, navigation and the "book a call" button are a single Menu module rather than three columns. It shrinks on scroll - the bar and the logo both step down - and that is set natively in the module's sticky options, so you can change the numbers without touching code.

The button at the end of the menu is an ordinary menu item carrying the class kaya-menu-cta. Remove the class under Appearance › Menus and it becomes a plain link again.

The Menus screen showing the Kaya primary menu

THE HEADER

The dropdown

Two menu items have children in the demo - the landing page under Home, and the three journal categories under Blog. The dropdown panel sizes itself to its longest label, so renaming a category is safe.

Its shape is styled in the child theme's stylesheet rather than in the module, deliberately: a single save in the Visual Builder can wipe a module's custom CSS field, and this is the one piece of styling that would be missed if it went.

THE FOOTER

It carries the newsletter band

The taupe sign-up band is the first section of the footer template, which is why it appears on every page, post and archive without being added to any of them. Edit it once, there.

The landing page is the exception - it has a footer of its own, with no sign-up.

THE JOURNAL

Archives, and the ones Kaya does not template

The journal page, single posts and category archives each have a template. Tag archives, date archives and search results do not - they fall back to the default template, which has a header and footer but no body layout, so they use Divi's standard list.

If you use tags heavily, duplicate the Category Archive template and change its condition to tags. It needs no other edit.

Next

The contact form and newsletter