Skip to content

WordPress Template Editor: Check Which Pages Share a Template

Check two pages in a WordPress block theme, then verify which change affects the page body, a shared layout or one template assignment.

Two different photo pages share one violet stencil beside a separate translucent layout
Jack Lee
3 Min Read
Share
On This Page

In a WordPress block theme, a page holds its own content. A template supplies the layout around it. Changing a shared template can change several pages at once, even if you entered the Template Editor from one page.

Check the assigned template on two pages

Choose two pages on a staging copy. Open each page in the block editor and look at Template in the Page settings. Record the selected template and each page’s URL. If the page shows Default, look at the layout the theme actually resolves. A dedicated page template can take precedence over the theme’s general Pages template.

In our WordPress Playground test, two fictional batik class pages, Workshops and FAQ, used the same custom layout. We put a short marker in the layout and kept a Content block for each page’s text.

Choose between page content, layout and assignment

  1. To edit the workshop dates, change the paragraph in the Workshops page editor. Save the page and check its front-end preview on the test site. The FAQ page should still show its own answers.
  2. To change the layout for both pages, open their shared template. Save the template change and open both URLs.
  3. To give Workshops its own layout, create a custom template with a Content block, open Workshops and choose Change template from its Page settings, then select the custom template and save the page.
Test stepWorkshops pageFAQ page
Both use Shared layoutShared layout marker · Workshop datesShared layout marker · Class answers
Edit Shared layoutRevised shared layout marker · Workshop datesRevised shared layout marker · Class answers
Switch Workshops to Workshop layoutWorkshop-only layout marker · Workshop datesRevised shared layout marker · Class answers

In the test, we updated the template and page assignment through WordPress and requested both front-end URLs after each change. Each showed its own body text and the layout marker for its assigned template.

Read the save dialog and verify both pages

Before confirming a save from the editor, check the list of items being saved. Reopen both pages in a separate tab. Match the layout marker and page-specific text on both URLs. To reverse only the assignment, reselect the original template for Workshops. A saved edit to the shared template is a separate change.

Use the WordPress staging guide to run the test away from your live site. If what you need to share is one reusable group of blocks, see the synced patterns guide.

Frequently asked questions

How do I edit the Pages template in WordPress?

For a block theme, go to Appearance, Editor, Templates and open Pages. Check which pages use it before saving.

Can I change the layout of just one page?

Yes. Assign a custom template to that page and check another page that still uses the old template.

Why did the page body disappear after switching templates?

Check whether the new template includes the Content block. It outputs the body of the current page.

Share This Article