> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainwp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Boilerplate

> The Boilerplate extension is the perfect solution for commonly repeated pages such as your "Privacy Policy", "About Us", "Terms of Use", "Support Policy", or any other page with standard text that needs to be distributed across your network.

## What You'll Learn

* Creating and using boilerplate tokens
* Setting token values for child sites
* Publishing boilerplate posts and pages
* Editing and removing boilerplate content

***

<div id="addon-data" style={{display: 'none'}} data-title="Boilerplate" data-purchase-url="https://mainwp.com/extension/boilerplate/" data-pricing-tier="pro" data-bundle="MainWP Pro" data-addon-type="extension" data-version="5.0" data-developer="MainWP" data-changelog-url="https://mainwp.com/changelog/mainwp-boilerplate-extension/" data-owned-by="Jestart LLC" data-privacy-url="https://mainwp.com/mainwp-plugin-privacy-policy/" />

<Info>
  **Extension Add-on** - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
</Info>

The [MainWP Boilerplate Extension](https://mainwp.com/add-on/boilerplate/) gives you the ability to easily create repetitive pages or posts on your child sites. Using the available placeholders (**Tokens**), these pages can be customized for each site without needing to be rewritten. The Boilerplate extension is the perfect solution for commonly repeated pages such as:

* Privacy Policy
* About Us
* Terms of Use
* Support Policy

or any other page with standard text that needs to be distributed across multiple websites.

## How does the Boilerplate Extension Work?

After installing the extension, you can create custom placeholders (Tokens) that you will need in your commonly used pages and posts. For each of your child sites, add values for the tokens. When you are done with the setup, you can create one page with these placeholders and post it to all wanted sites. On each child site, the placeholders will be replaced with the custom values for the site. All your Boilerplate Pages and Posts will be saved and fully editable. With just a few clicks, you will be able to tweak a page on all your sites at once.

## Boilerplate Tokens

Boilerplate pages use tokens to be customized for each site without needing to be rewritten. Basically, in the source post, instead of using actual data, you can place tokens. After publishing, tokens will be replaced by actual values on each child site. The MainWP Boilerplate extension comes with a set of default tokens and the ability to create custom tokens. For both default and custom tokens, it is required to set values for each child site individually, which will replace the token on child sites after publishing a boilerplate post or page.

## Default Boilerplate Tokens

After installing the MainWP Boilerplate Extension, on the **MainWP > Add-ons > Boilerplate > Custom Tokens** page, you will be able to see the section with available tokens. <img src="https://mintcdn.com/mainwp/e07i-JbTNXjDT9ia/images/add-ons/boilerplate-create.jpg?fit=max&auto=format&n=e07i-JbTNXjDT9ia&q=85&s=549b0d221f4db630299f3d29785054d6" alt="Default Boilerplate tokens list with descriptions" width="1720" height="487" data-path="images/add-ons/boilerplate-create.jpg" /> Along with a token, on the right-hand side, you can see the token description so you can get an idea of what to use it for.

### Set Values for Default Tokens

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Manage page" />

  <Step title="Locate one site and click the Edit action">
    <img src="https://mintcdn.com/mainwp/PMb515K3nlj7x2jI/images/add-ons/5df199be0021.jpg?fit=max&auto=format&n=PMb515K3nlj7x2jI&q=85&s=fe881b94d07dd3d2ca80308be323f8ad" alt="Locate one site and click the Edit action" width="1703" height="523" data-path="images/add-ons/5df199be0021.jpg" />
  </Step>

  <Step title="Locate the Boilerplate Settings section" />

  <Step title="Enter values for tokens that you intend to use" />

  <Step title="Click the Update Site button" />

  <Step title="Repeat steps 3">
    Repeat steps 3 - 6 for the rest of your child sites
  </Step>
</Steps>

## Custom Boilerplate Tokens

Along with the set of default tokens, the MainWP Boilerplate Extension allows you to create your custom tokens.

### Create Custom Tokens

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Custom Tokens page" />

  <Step title="Click the Create Custom Token button" />

  <Step title="Modal will show">
    <img src="https://mintcdn.com/mainwp/e07i-JbTNXjDT9ia/images/add-ons/boilerplate-overview.jpg?fit=max&auto=format&n=e07i-JbTNXjDT9ia&q=85&s=3b8f5178b13f291fcee5bf5af9073950" alt="Modal will show" width="1720" height="487" data-path="images/add-ons/boilerplate-overview.jpg" />

    1. Add **Token Name**
       2\.  Add **Token Description**
       3\.  Click the **Save** button
  </Step>
</Steps>

After saving the new token, the token will appear in the Tokens table. From here, you can **Edit** or **Delete** it. The token will be added to the Boilerplate Settings option box on the child site edit page, where you can set values for the token.

<Warning>
  When creating a new token, **do not use \[ ] symbols**. The Boilerplate extension will add them automatically.

  Avoid creating tokens that are reserved for our Clients functionality and Pro Reports extension:

  `[client.city]` `[client.contact.address.1]` `[client.contact.address.2]` `[client.contact.name]` `[client.email]` `[client.name]` `[client.phone]` `[client.site.name]` `[client.site.url]` `[client.state]` `[client.zip]` `[client.facebook]` `[client.twitter]` `[client.instagram]` `[client.linkedin]` `[client.country]` `[client.note]` `[client.created]` `[contact.role]` `[contact.email]` `[contact.phone]` `[contact.facebook]` `[contact.twitter]` `[contact.instagram]` `[contact.linkedin]`
</Warning>

### Set Values for Custom Tokens

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Manage page" />

  <Step title="Locate one site and click the Edit action">
    <img src="https://mintcdn.com/mainwp/PMb515K3nlj7x2jI/images/add-ons/5df199be0021.jpg?fit=max&auto=format&n=PMb515K3nlj7x2jI&q=85&s=fe881b94d07dd3d2ca80308be323f8ad" alt="Locate one site and click the Edit action" width="1703" height="523" data-path="images/add-ons/5df199be0021.jpg" />
  </Step>

  <Step title="Locate the Boilerplate Settings option box" />

  <Step title="Enter values for tokens that you intend to use" />

  <Step title="Click the Update Site button" />

  <Step title="Repeat steps 3">
    Repeat steps 3 - 6 for the rest of your child sites
  </Step>
</Steps>

## Boilerplate Posts

After publishing a boilerplate post on your child sites, the post looks normal, just like any other WordPress post. After it's created, the post will be visible normally in the **WP > Posts > All Posts** page on child sites. However, on the MainWP Dashboard side, the list of created Boilerplate posts is available in the **MainWP > Add-ons > Boilerplate** page, in the **Boilerplate Posts** tab. From here, you can Edit and Delete Boilerplate posts.

## Create Boilerplate Post

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Posts > Add Boilerplate page" />

  <Step title="Compose the post using tokens as needed">
    Compose the post as any other WordPress post, but in the post body, you can use tokens where needed. <img src="https://mintcdn.com/mainwp/9Fi7dKBCIriTb92d/images/add-ons/1bb764522c6f.jpg?fit=max&auto=format&n=9Fi7dKBCIriTb92d&q=85&s=b848d78638a3e27462e7027f64340e8c" alt="boilerplate-post-example" width="790" height="496" data-path="images/add-ons/1bb764522c6f.jpg" /> Tokens are allowed in Post Title and in the Post Body.
  </Step>

  <Step title="Select your Child Sites where you want to publish this post">
    [Select your Child Sites](/getting-started/mainwp-user-interface) where you want to publish this post
  </Step>

  <Step title="Click the Publish button" />
</Steps>

### How to insert Tokens

<img src="https://mintcdn.com/mainwp/9Fi7dKBCIriTb92d/images/add-ons/0c7d6e09795d.jpg?fit=max&auto=format&n=9Fi7dKBCIriTb92d&q=85&s=b631d8ec85ad2c2ace177a8f4e6fb7fc" alt="Boilerplate Tokens Metabox" width="790" height="223" data-path="images/add-ons/0c7d6e09795d.jpg" />Tokens can be inserted manually by typing the token where it's needed or by clicking on a token in the Tokens meta box. After clicking on a token, the token will be inserted in the post automatically.

## Edit Existing Boilerplate Post

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Edit the post content or meta values" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, updates will be applied to all child sites.

## Add Existing Boilerplate Post to a New Site

If you have a Boilerplate post that you want to add to a newly connected child site, you can do that by following these steps:

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Locate the Select Sites section" />

  <Step title="Select the new Child Site" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, the boilerplate post will be added to new sites.

## Remove a Boilerplate Post from a Child Site

If you have a Boilerplate post that you want to remove from one or multiple child sites, you can do that by following these steps:

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Locate the Select Sites section" />

  <Step title="Unselect wanted sites" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, the boilerplate post will be removed from the unselected child sites.

## Delete a Boilerplate Post

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Delete action in the actions menu" />
</Steps>

**Important Notes:** After clicking the Delete action, the boilerplate post will be removed from the extension database, but the actual posts will stay on your child sites.

## Boilerplate Pages

After publishing a boilerplate page on your child sites, the page looks normal, just like any other WordPress page. After it's created, the page will be visible normally in the **WP > Pages > All Pages** page on child sites. However, on the MainWP Dashboard side, the list of created Boilerplate pages is available in the **MainWP > Add-ons > Boilerplate** page, in the **Boilerplate Pages** tab. From here, you can Edit and Delete Boilerplate pages.

## Create a Boilerplate Page

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Pages > Add Boilerplate page" />

  <Step title="Compose the page using tokens as needed">
    Compose the page as any other WordPress page, but in the page body, you can use tokens where needed. <img src="https://mintcdn.com/mainwp/9Fi7dKBCIriTb92d/images/add-ons/1bb764522c6f.jpg?fit=max&auto=format&n=9Fi7dKBCIriTb92d&q=85&s=b848d78638a3e27462e7027f64340e8c" alt="boilerplate-post-example" width="790" height="496" data-path="images/add-ons/1bb764522c6f.jpg" /> Tokens are allowed in Page Title and in the Page Body.
  </Step>

  <Step title="Select your Child Sites where you want to publish this page" />

  <Step title="Click the Publish button" />
</Steps>

### How to Insert Tokens

<img src="https://mintcdn.com/mainwp/9Fi7dKBCIriTb92d/images/add-ons/0c7d6e09795d.jpg?fit=max&auto=format&n=9Fi7dKBCIriTb92d&q=85&s=b631d8ec85ad2c2ace177a8f4e6fb7fc" alt="Boilerplate Tokens Metabox" width="790" height="223" data-path="images/add-ons/0c7d6e09795d.jpg" />Tokens can be inserted manually by typing the token where it's needed or by clicking on a token in the Tokens meta box. After clicking on a token, the token will be inserted on the page automatically.

## Edit Existing Boilerplate Page

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Edit the page content or meta values" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, updates will be applied to all child sites.

## Add Existing Boilerplate Page to a New Site

If you have a Boilerplate page that you want to add to a newly connected child site, you can do that by following these steps:

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Locate the Select Sites section" />

  <Step title="Select the new Child Site" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, the boilerplate post will be added to new sites.

## Remove a Boilerplate Page from a Child Site

If you have a Boilerplate page that you want to remove from one or multiple child sites, you can do that by following these steps:

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Posts page" />

  <Step title="Click the Edit action in the actions menu" />

  <Step title="Locate the Select Sites section" />

  <Step title="Unselect wanted sites" />

  <Step title="Click the Update button" />
</Steps>

After clicking the Update button, the boilerplate page will be removed from the unselected child sites.

## Delete a Boilerplate Page

<Steps>
  <Step title="Login in to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Boilerplate > Boilerplate Settings page" />

  <Step title="Click the Delete action in the actions menu" />
</Steps>

**Important Notes:** After clicking the Delete action, the boilerplate page will be removed from the extension database, but the actual pages will stay on your child sites.

***

## Related Resources

* [Posts/Pages Add-ons](/add-ons/posts-pages) - Browse all content tools
* [Pro Reports Tokens](/add-ons/agency/available-pro-reports-tokens) - Token reference guide
* [Manage Pages](/sites/content/manage-pages) - Page management guide
