# How to let clients fix WordPress text without breaking the layout

> A playbook for agencies and freelancers: the right WordPress role for a client, block locking and content-only editing, limits on ACF fields and Elementor styles, revisions and undo, with a handover checklist to finish.

- URL: https://w-pencil.cloud/blog/let-clients-edit-wordpress-text
- Published: 2026-12-02
- Updated: 2026-12-02
- Author: W-Pencil team
- Tags: wordpress, agencies, client-handover, gutenberg, acf, elementor

Keep the words and the structure apart. Give the client a role that edits content but not the theme, lock what they shouldn't move or remove, show them only the fields they need and keep every change as a revision they can undo. WordPress's block locking, ACF's field settings and Elementor's Role Manager cover most of this, and an in-place editor such as W-Pencil takes the layout out of the client's view altogether.

This playbook goes through each layer in the order you'd set it up, with the settings and code for each, and ends with a checklist for handover day.

## Why do clients break layouts?

Rarely through carelessness. Most breakages come from the editing screen putting structure and content side by side:

- **Structure is one click from the text.** In the block editor, a paragraph and the Columns, Group or Cover block around it are all selectable, and a Backspace in the wrong place removes a block.
- **Design controls sit next to content.** In a page builder, a widget's Style tab is one click from its Content tab.
- **Shared content doesn't look shared.** A change to a template part or a synced pattern shows on every page that uses it.
- **Text grows.** A three-word heading that fits on a phone wraps badly at eight words, and a button label written as a sentence pushes its neighbours around.

So the fixes are about what the client can reach, not about training. Each section below removes one of these causes.

## Which WordPress role should a client have?

Usually **Editor**. WordPress's [roles and capabilities](https://wordpress.org/documentation/article/roles-and-capabilities/) documentation describes an Editor as "somebody who can publish and manage posts including the posts of other users". What matters for a handover is what each role can't do:

| Capability | Administrator | Editor | Author |
|---|---|---|---|
| Edit other people's posts and pages (`edit_others_posts`) | Yes | Yes | No |
| Menus, widgets, the Customizer and the Site Editor (`edit_theme_options`) | Yes | No | No |
| Settings, such as the site's title (`manage_options`) | Yes | No | No |
| Post any HTML, scripts included (`unfiltered_html`) | Yes, on a single site | Yes, on a single site | No |

Three decisions follow from that table:

1. **Keep the Administrator account for whoever maintains the site.** An administrator can install plugins, switch themes and change any setting. Give the client an Editor account of their own, even if they also have an admin login for emergencies.
2. **Decide about menus and the site's title.** Editors can't change them. The usual way to allow it is `edit_theme_options`, but that capability also opens the Site Editor, widgets and the Customizer. Choose which is worse for this client: asking you to rename a menu item, or being able to change the header template.
3. **Decide about raw HTML.** On a single site, administrators and editors have `unfiltered_html`, so they can paste scripts and iframes into content. If the client doesn't embed things, take it away:

```bash
$ wp cap remove editor unfiltered_html
```

## How do you lock the layout in the block editor?

WordPress has two kinds of lock, both described in the [block templates reference](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-templates/):

- **A block's own lock,** the `lock` attribute, with `move` and `remove`. You can set it with **Lock** in the block toolbar's options menu, or in the markup. A block-level lock takes priority over a template lock.
- **A container's template lock,** `templateLock`, which applies to the blocks inside it:
  - `all` prevents inserting, moving and deleting blocks;
  - `insert` prevents inserting and removing blocks but allows moving them;
  - `contentOnly` hides the design tools and lets people change only the content of the blocks inside.

A section the client may reword but not rearrange or delete looks like this in the page's markup:

```html
<!-- wp:group {"templateLock":"contentOnly","lock":{"move":true,"remove":true}} -->
<div class="wp-block-group">
	<!-- wp:heading -->
	<h2 class="wp-block-heading">Our services</h2>
	<!-- /wp:heading -->
	<!-- wp:paragraph -->
	<p>What we do, in two lines.</p>
	<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
```

Content-only editing arrived in WordPress 6.1 and was stabilised for block developers in 6.7, as WordPress's developer blog explains. Custom blocks opt in by giving the attributes that hold content `"role": "content"` in their `block.json`.

WordPress 7.0 went further. Unsynced patterns and template parts now open in content-only mode by default in the editor, as the [Pattern editing in WordPress 7.0](https://make.wordpress.org/core/2026/03/15/pattern-editing-in-wordpress-7-0/) note explains. It's a good default for clients, but it's a guard rail rather than a lock: **Edit pattern** brings back the full tools for an unsynced pattern.

### Who may unlock?

Who can lock and unlock blocks is the editor's `canLockBlocks` setting. WordPress's block locking guide shows how to keep it to the people who can change the site's design:

```php
add_filter(
	'block_editor_settings_all',
	function ( $settings ) {
		$settings['canLockBlocks'] = current_user_can( 'edit_theme_options' );
		return $settings;
	}
);
```

A lock is an attribute in the post's content, so treat it as protection against slips, not as a permission. Someone who opens the Code editor can still change the markup.

## How do you limit what clients see in ACF?

ACF field groups are where structure and content most often get mixed, because a "section" field group tends to hold both the words and the settings that style them.

- **Split content from settings.** Put background colours, layout choices and anchors in their own field group, and use ACF's location rules to show that group only to administrators.
- **Set a character limit** on text fields that sit in tight spaces, such as headings and button labels. ACF's Text field has a **Character Limit** setting, and the edit screen enforces it.
- **Write instructions.** One line under the field saying where it shows and how long it should be prevents most surprises.
- **Validate what matters.** The `acf/validate_value` filter lets you refuse, for example, a phone number in the wrong format, with a message the client sees.
- **Keep row structure with you if it matters.** Repeater and flexible content fields let anyone who can edit the page add, remove and reorder rows. If the design depends on exactly three cards, set the repeater's minimum and maximum rows.

## How do you stop clients changing Elementor styles?

Elementor's [Role Manager](https://elementor.com/help/role-manager/) has two levels of restriction for each role:

- **No access to editor:** the role can't open Elementor's editor.
- **Access to edit content only** (Elementor Pro): the role can open the editor but only change existing content. In the v4 editor, from Elementor 4.4, the General tab stays editable and the Style and Interactions controls are disabled. The role can't add, delete or drag elements.

Test either setting while logged in as the client's role before handover, and check pages built with older widgets as well as new ones.

## What if something still goes wrong?

Plan for the mistake you didn't prevent.

- **Revisions.** WordPress keeps a revision of each update to a post or page, and its Revisions screen can restore any of them. WordPress 7.0 added a new revisions screen that marks added, removed and changed blocks in colour; the [Revisions](https://wordpress.org/documentation/article/revisions/) documentation shows it.
- **Check they're on.** `WP_POST_REVISIONS` in `wp-config.php` set to `false` or `0` turns revisions off, and a number keeps only that many per post.
- **Know what has no revisions.** Classic menus, the site's title and tagline and options pages, ACF's included, are saved without revisions. A backup is the only way back for those, apart from undoing a change straight after it.
- **Take a backup at handover** and write down where it's kept and how to restore it.

## Where does W-Pencil fit in a handover?

W-Pencil removes the structure from the client's view rather than locking it. They browse their own site while logged in, and text, links and images they may change get a blue outline and a pencil. A click opens a small popup with that one value: the heading's words, a button's text and address, an image and its alt text. There's no canvas, no List View and no Style tab to stray into.

What that means for the layout:

- **A save changes only that value.** For a block, it changes the stored HTML of that one block and leaves every other character of the page as it was, so the block editor opens the page afterwards without warnings. For ACF and Elementor, the save goes through ACF's or Elementor's own saving, with their validation and filtering.
- **Your limits still apply.** An ACF field's character limit and your `acf/validate_value` rules run in the popup, as on the edit screen.
- **Permissions are WordPress's.** A pencil shows only where the person may already make the change in wp-admin: `edit_post` for a page, `edit_theme_options` for menus and template parts, `manage_options` for the site's title. W-Pencil also asks Elementor whether the person may edit an Elementor page, so test any Role Manager restriction with the client's account. [Permissions and access](https://w-pencil.cloud/docs/permissions) lists every check.
- **You choose what's off limits.** **W-Pencil › Left out** takes whole post types, block types or Elementor widgets out of editing on the page, and each ACF field can be set to edit in the popup, through **More fields…** only or not on the page at all. That setting travels with the field group's local JSON as `w_pencil_mode`; [Field modes](https://w-pencil.cloud/docs/field-modes) explains it.

```json
{
  "key": "field_hero_anchor",
  "label": "Anchor",
  "name": "hero_anchor",
  "type": "text",
  "w_pencil_mode": "form"
}
```

What that means for mistakes:

- **Undo is one click.** After each save, the "Changes saved" message offers **Undo**, or <kbd>Alt</kbd> <kbd>Shift</kbd> <kbd>Z</kbd> while it shows. Undo never uses an edit.
- **Every save is a revision** with a note that says where: "Edited on the page: Home › Heading". Turn on **Ask for a revision message** under **W-Pencil › Editing** and the client can add why: "Edited on the page: Home › Heading. Spelling, as the client asked".
- **Nothing is overwritten silently.** If someone saved the same thing after the popup opened, the client sees both versions and chooses **Use latest version** or **Overwrite with my version**. If a colleague has the page open in the block editor or Elementor, the popup says "Being edited in the backend" before anyone types.
- **Saves without revisions are logged.** **W-Pencil › Activity** lists every save made on the page for 90 days: who, when and what, with a link to its revision where there is one. That covers menus, the site's title and options pages. It doesn't keep the values, so for those, Undo straight after the save is the way back.

[Undo, revisions and conflicts](https://w-pencil.cloud/docs/undo-revisions-and-conflicts) has the details.

### When W-Pencil isn't the right tool

- **The client builds pages.** New sections, new layouts and reordering are layout work; W-Pencil edits values. Give that client the block editor with content-only patterns, or Elementor with the right role.
- **Changes need sign-off.** A save goes live straight away, as a revision. There's no approval step, so if every change must be reviewed before visitors see it, you need an editorial workflow W-Pencil doesn't provide.
- **The words are in the theme's templates.** Text written into a PHP or HTML template isn't stored anywhere WordPress can save it. Move it into a block, a field or an option first.
- **The page is a list of other posts.** Titles and excerpts in a Query Loop or a blog index are edited on each post's own page.
- **The site uses Elementor 4's atomic widgets.** They get no pencil in W-Pencil 1.0.
- **You need it free forever on a busy live site.** The first 50 edits are free with no account. After that a live site needs a plan: a 30-day free trial with 100 edits (card needed, $0 today), then $4 a month for 4,000 edits a month. Local development sites never count. See [Pricing](https://w-pencil.cloud/pricing).

If your client is comfortable in the block editor and your patterns are content-only, you may not need another tool at all. For a comparison of every option, see [Editing WordPress on the front end: every way to do it, compared](https://w-pencil.cloud/blog/wordpress-front-end-editing-compared).

## A handover checklist

1. Create the client's user as an **Editor**. Keep administrator accounts for whoever maintains the site.
2. Decide whether the client edits menus and the site's title. If so, grant `edit_theme_options` knowing it also opens the Site Editor, widgets and the Customizer.
3. Remove `unfiltered_html` from the editor role unless the client embeds scripts or iframes.
4. Lock structural blocks against moving and removal, and set `contentOnly` on sections the client rewords.
5. Limit `canLockBlocks` to people with `edit_theme_options`.
6. In ACF, move layout settings into a group only administrators see, and add instructions and character limits to text fields in tight spaces.
7. In Elementor, set the client's role in the Role Manager, then test it with their account.
8. Check `WP_POST_REVISIONS` isn't `false` or `0`.
9. Take a backup and write down where it is.
10. If you use W-Pencil: tick anything that must stay in the backend under **W-Pencil › Left out**, set field modes for fields that hold codes rather than words and decide whether to ask for a revision message.
11. Log in as the client and fix a typo on three different kinds of page: a page built with blocks, one with ACF fields and one with Elementor, if the site has them.
12. Show the client Undo and the Revisions screen, and tell them who to contact when something looks wrong.

## Try it on a client site

W-Pencil works as soon as it's active: install it, open a page as an editor and fix a word. Each site gets 50 free edits with no account or card. [Download W-Pencil](https://w-pencil.cloud/download/w-pencil.zip) and follow [Install and connect](https://w-pencil.cloud/docs/install-and-connect).

## Frequently asked questions

### What WordPress role should I give a client?

Editor, in most cases. Editors can edit and publish every post and page but can't install plugins, switch themes or change settings, menus or the site's title. Keep the Administrator role for the people who maintain the site.

### How do I stop a client deleting or moving blocks?

Lock them. A block's lock attribute can prevent moving and removal, and a container with templateLock set to contentOnly lets people change the text and images inside it without the design tools. Limit who may unlock blocks with the canLockBlocks editor setting.

### Can a client edit Elementor text without touching the styles?

Yes. With Elementor Pro, the Role Manager's Access to edit content only setting keeps a role to content. An in-place editor such as W-Pencil goes further: the client never opens Elementor, and only the controls on a widget's Content tab get a pencil.

### Can a client undo a mistake on a WordPress page?

Yes. WordPress keeps revisions of posts and pages, and Restore puts an earlier one back. W-Pencil also offers a free Undo straight after each save and saves every change as a revision with a note saying what changed.

### Does WordPress keep revisions of menus and the site title?

No. Classic menus, the site's title and tagline and ACF options pages have no revisions in WordPress. W-Pencil's Activity tab lists every save made on the page for 90 days, those included.
