• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
  • Main Site
  • About Us
  • Services
  • Support
  • Blog
BizBudding Docs

BizBudding Docs

Documentation

  • Mai Theme Docs
    • Mai Themes (v2)
  • Classic Theme Docs
    • Pretty Darn Cute
    • SEO Themes
    • Mai Theme (Classic)
  • Search
Home » MT Docs » Content Areas » Template Parts (Block-based ‘Widget Areas’)

Template Parts (Block-based ‘Widget Areas’)

Knowledgebase: Content Areas

Versatile, block-powered content areas.

Table of Contents[Hide][Show]
  • How Template Parts are displayed
  • Before Header
  • Header Left
  • Header Right
  • Mobile Menu
  • After Entry
  • Before Footer
  • Footer
  • Footer Credits

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.

Template Parts quick link in admin menu.

Put all of your content in a Group block to easily style background and text colors, and handle spacing/sizing via our layout and spacing settings.

How Template Parts are displayed

  1. Template Parts take advantage of post statuses.
  2. If a template part has content and is Published, it will display on the front end.
  3. If a template part has content and is Private, it will only display for users with the ability to edit posts (typically Editors/Administrators).
  4. If a template part has no content or is a Draft, it will not display.

Mai Theme has all of the following template parts available.

Before Header

The before header template part is great for utility menus, social icons, announcements, and any easily accessible content at the top of every page.

Header Left

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.

Header Right

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.

If you want a menu in Header Left or Right, don’t use template parts. It’s best to set your menu to the Header Left or Right menu location. Widget areas are useful when you want unique content instead of a menu.

Mobile Menu

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.

After Entry

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.

Before Footer

The before footer template part displays on every page and is great for a full width call to action or reusable content.

Footer

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.

Footer Credits

The footer credits template part defaults to standard site credits. Override or customize with anything you’d like.

Previous Post: « Widget Areas
Next Post: Hide Elements (& Landing Pages) Mai Theme Hide Elements meta box »
bizbudding team

Need some help with your theme?

Open a support request by filling out our support form.

Get Support

Sidebar

Knowledgebase

First Steps

Menus

Content Areas

Customizer

Blocks

Shortcodes

Advanced/Developers

Plugins




BizBudding icon

Resources

  • Shop
  • Affiliates
  • Data Protection
  • Privacy Policy
  • Terms & Conditions
  • Contact Us

quick links

  • Main Site
  • About Us
  • Services
  • Support
  • Blog

Contact Details

1001 County Road 517, Suite 1
Hackettstown, NJ 07840

(877) 548-2440

Contact Us


  • Mai Theme Docs
    • Mai Themes (v2)
  • Classic Theme Docs
    • Pretty Darn Cute
    • SEO Themes
    • Mai Theme (Classic)
  • Search

Copyright © 2010–2021 BizBudding Inc. · All Rights Reserved ♥ Work hard and be nice to people.