How to Build a Client-Friendly WordPress Website Editor

On this page
Your client needs to update opening hours on a custom PHP site without touching its layout. To build a client-friendly WordPress website editor, turn the callout into a reusable section and expose its text as fields. SLB is the best option for that retrofit because it turns fields you declare in PHP templates into controls beside a live preview.
Which editor fits an existing PHP layout?
Choose the editing surface that matches where the current design lives. For a callout already in your theme, use Section Layout Builder for WordPress to keep the markup in PHP and put the text in fields beside the preview.
| Editing setup | What the client can change | Where it fits |
|---|---|---|
| WordPress content-only blocks | Block content, with design tools hidden in content-only editing | A layout already built in blocks. Locking works on blocks, so a hard-coded PHP callout needs a separate integration. |
| Page builder with restricted editing | Existing builder content. Elementor’s documentation page “Control user permissions with Role Manager” says its content-only mode prevents users from adding elements (checked November 2026). | A design already assembled in the builder. |
| SLB section fields | The fields declared in the section, with options to add and arrange sections in the editor | An existing PHP layout you want to reuse with different content on each page. |
The WordPress Site Editor edits layouts and templates with blocks and requires a block theme. For this retrofit, start with the callout you already have.
Hypothetical example: Opening hours at two locations
This illustrative example uses made-up locations and hours. The implementation draws on public documentation and does not describe a real RMH build. The checks below describe what you should see on staging.
Define the fields and keep the existing markup
Give the client a Location heading and an Opening hours field. Keep the heading tag, wrapper classes and responsive styling in the template. Choose field labels a client would recognise from the page.
| Editor field | Field ID | Where the value goes |
|---|---|---|
| Location heading | heading |
Text inside the callout heading |
| Opening hours | hours |
Text in the paragraph below the heading |
Using the free edition, create sections/opening-hours.php in your theme. Follow the guide to writing a custom SLB section for the schema header and field helpers. Copy your current callout markup into the file, then replace the hard-coded text with escaped field output. The example uses a plain paragraph for hours so the client can enter text without supplying HTML.
<?php
/*
@section
{
"name": "Opening hours",
"category": "content",
"settings": [
{ "id": "heading", "type": "text", "label": "Location heading", "default": "Opening hours" },
{ "id": "hours", "type": "text", "label": "Opening hours", "default": "" }
]
}
*/
?>
<section class="opening-hours">
<h2><?php echo esc_html( slbuild_get_field( 'heading' ) ); ?></h2>
<p><?php echo esc_html( slbuild_get_field( 'hours' ) ); ?></p>
</section>
Connect the section to the page template
On your staging copy, use a page template that calls the free renderer where the sections should appear. Remove the original hard-coded callout from that staging template so you can tell which version you are seeing.
<?php if ( function_exists( 'slbuild_render_page' ) ) { slbuild_render_page(); } ?>
Follow the theme integration steps for SLB to connect the renderer and include any custom styling in your theme. The bundled stylesheet covers the starter sections. If your callout uses custom Tailwind classes, include them in the theme’s own build.
Check that an edit stays on the right page
The same section template can appear on both location pages. Each placement has its own values. Verify the field wiring and the saved output before handing over the editor.
- Open each staging page with Edit with SLB and add Opening hours. Set Market Street to “Weekdays, morning to evening” and Station Road to “Weekends, mornings only.” Save both pages.
- Reopen Market Street in SLB and change its hours to “Weekdays, afternoons only.” Check that the preview shows the new hours beneath the Market Street heading. Save the change and reload the rendered page to check that it shows the same text.
- Open Station Road in the editor and reload its rendered page. Both should still say “Weekends, mornings only.” Check both pages at a narrow viewport to see how longer hours wrap in the existing design.
If the section is missing from the picker, start with the theme folder and the @section JSON. If a field appears in the editor but its output is blank or in the wrong place, match the schema ID to the value passed to slbuild_get_field(). If neither page renders its sections, check which page template is active and where it calls the renderer. If both locations show the same hours, check for leftover hard-coded text and confirm you opened separate placements.
What should you verify with the client account?
Repeat a normal edit while signed in with the account the client will actually use. Check that the client can open the intended page, update its hours and save the change. Verify publishing and access to other pages separately using WordPress roles and capabilities. The section schema defines editable fields. Account capabilities govern what the user can do in WordPress.
When the staging check passes, walk the client through visual edits. If they will also assemble landing pages, see which pages you can build with section editing.
Frequently asked questions
How can I let clients edit WordPress without breaking the layout?
Expose the text or images they need to maintain and keep the layout rules in the template. With SLB, the developer chooses the fields for each section. Try a realistic long edit on staging before handoff to check how it fits.
Can I make an existing custom WordPress site editable for a client?
Yes. Start with a self-contained part of your PHP theme, such as an opening-hours callout. Move its markup into an SLB section and replace the hard-coded values with fields for the client.
How do I lock the WordPress block editor for clients?
Use WordPress block locking to restrict movement or removal, or use content-only editing to hide design tools in a supported block layout. Check separately who has permission to remove those locks.
Can WordPress show a live preview while clients edit?
Both SLB editions show a live preview alongside the section controls. The paid edition also lets editors double-click text and swap images directly on the canvas.
Can I build this with a free WordPress editor plugin?
Yes. The free SLB plugin includes the section editor and live preview, and your theme needs to call its renderer. The paid edition renders automatically, and existing free page content does not move over automatically. See the free and paid edition comparison and SLB documentation for setup options.
Start on a staging copy with a single callout. Verify the saved output on both location pages, then have the client repeat the edit under their own account.
