Mai Theme uses Template Parts for global content areas that have traditionally been widget areas in most themes. This unlocks tremendous power for easy of laying out and styling your content.
Manage your template parts via Dashboard > Appearance > Template Parts.
Or, if viewing the front end of your site, use the quick links in the toolbar when logged in.
How Template Parts are displayed
- Template Parts take advantage of post statuses.
- If a template part has content and is Published, it will display on the front end.
- If a template part has content and is Private, it will only display for users with the ability to edit posts (typically Editors/Administrators).
- If a template part is no content or is a Draft, it will not display.
Mai Theme has all of the following template parts available.
The before header template part is great for utility menus, social icons, announcements, and any easily accessible content at the top of every page.
The header left are is typically filled with a nav menu, but a template part can be used to put other content that requires blocks for easier management.
PThe header left are is typically filled with a nav menu, but a template part can be used to show text content, call to action (CTA’s), phone numbers, etc.
The mobile menu template part overrides the default mobile menu content. If you add content here, make sure you add a navigation menu too. Also works well with a search bar, social icons, and/or contact info.
The after entry template part typically displays after Posts, but can be configured in the Customizer to display on other content types and/or re-ordered to be wherever you want it on the page. This is great for a call to action, upsell, etc.
The before footer template part displays on every page and is great for a full width call to action or reusable content.
The footer template part is for standard footers. The possibilities are endless and there is no “best practice” for footers in this case. Most often used with a group block and columns block to display your footer content.
The footer credits template part defaults to standard site credits. Override or customize with anything you’d like.