Skip to content
GPLWP Guides

How to build custom page layouts in WordPress

Design & Layout Time About 30–90 minutes 7 steps Updated 16 Oct 2026

DESIGN & LAYOUT
The short answer

WordPress can build custom page layouts without a plugin when you use a block theme and the Site Editor. Classic themes need a child theme and custom page templates for deeper changes, while a visual builder is the fastest route for multiple polished layouts.

The route
  1. 01Choose the right layout route
  2. 02Plan the page structure
  3. 03Build it with the Site Editor
  4. 04Use a child theme for code
  5. 05Set responsive styles
  6. 06Preview and assign the layout
  7. 07Take the fast visual route

What you need

  • Administrator access to WordPress
  • A staging site or recent backup
  • A block theme or a child theme for custom code
  • A clear page structure and mobile layout plan

Choose the right layout route

Decide whether you need one unusual page, a reusable template for several pages, or a complete site-wide redesign. A block theme lets you edit templates visually in Appearance > Editor. With a classic theme, use the block editor for page content and a child theme for template-level changes.

You do not need a plugin for a straightforward layout made from headings, images, columns, groups, buttons and spacing controls. You need extra tooling when you want reusable design systems, complex responsive behaviour, dynamic content or many pre-built layouts.

Plan the page structure

Sketch the page as sections before opening the editor: header, hero, supporting content, call to action, proof or testimonials, and footer. Keep each section in a Group or Cover block, then use Columns or a Grid-style arrangement only where it improves the content.

Decide which areas belong to the page and which belong to the template. A header or footer is a template part; the hero and main content normally belong to the individual page. This separation prevents you from changing every page when you meant to change one.

Build it with the Site Editor

On a block theme, open Appearance > Editor, then open Templates to edit an existing layout or add a page template. WordPress provides templates for page types, and the Template Editor lets you design them with blocks. You can also manage reusable headers, footers and other template parts under Patterns.

For a layout used by one page, create a page-specific template where available. For a layout used by many pages, create a general page template and assign it from the page editor’s Template setting. Save the template, then edit the page content separately.

Use a child theme for code

With a classic theme, create and activate a child theme before changing template files. Add a custom page template to the child theme, give it a clear template name such as Template Name: Landing page, and then select it from the page editor’s Template or Page Attributes setting. WordPress recognises custom page templates placed in the theme folder.

Start by copying the theme’s existing page template rather than writing a complete layout from nothing. Keep the normal title and content output unless you have a reason to replace it. Do not use a filename beginning with page- for a globally selectable template, because WordPress treats that naming pattern as a page-specific template.

The drawback is maintenance: PHP, CSS and responsive rules are now your responsibility, and editing the parent theme directly can erase your work during an update. A child theme avoids that particular problem, but it still requires development knowledge.

Set responsive styles

Check the layout at a narrow mobile width, tablet width and desktop width before adding more decoration. Reduce column counts, check image cropping, keep text readable, and make buttons large enough to tap. Avoid fixed widths that force horizontal scrolling.

Use the theme’s spacing, typography and colour controls where possible instead of adding page-specific CSS for every block. If a block looks correct only at one screen size, simplify the structure before adding more CSS.

Preview and assign the layout

Preview the page while logged out and test its links, navigation, forms, images and accessibility basics. Confirm the page uses the intended template and that the page content still appears inside it. A template change can affect every page assigned to that template, not just the page you were viewing, so check a second page before publishing.

If the layout does not appear, check that you edited the active theme, selected the correct template, saved the template, and are not looking at a cached version of the page.

Take the fast visual route

For several custom layouts, use YOOtheme Pro for WP and Joomla. Its visual drag-and-drop builder, templates and responsive controls reduce the need to create child-theme files and write layout CSS by hand. It is a sensible shortcut for designers who need more control than a basic theme customizer provides.

Keep the manual route for simple pages or sites where you want to minimise dependencies. Whichever route you choose, make a backup first and avoid building every page as an isolated design that cannot be reused.

The fast route

Let YOOtheme Pro for WP and Joomla do it

Visual drag-and-drop builder with templates and responsive controls for designers who want more flexibility than a basic theme customizer.

Get YOOtheme Pro for WP and Joomla

Sources

  1. wordpress.org /documentation/article/site-editor/?utm_source=openai
  2. developer.wordpress.org /themes/advanced-topics/child-themes/?utm_source=openai
  3. developer.wordpress.org /themes/classic-themes/templates/page-template-files/?utm_so…
  4. wordpress.org /documentation/article/template-editor/?utm_source=openai

Questions

Can I create a custom page layout without a plugin?
Yes, you can create a custom page layout without a plugin by using the Site Editor with a block theme, or by creating a custom page template in a child theme. The block-theme route is suitable for most visual layouts. A classic-theme template requires PHP and CSS knowledge, and its responsive behaviour must be maintained manually.
What is the difference between a page and a template?
A page contains the content for one URL, while a template controls the structure used to display one page or a group of pages. In the Site Editor, a template can contain the header, footer and content area, while the page supplies its own text and images. Editing a shared template can therefore change every page that uses it.
Why is my custom page template not appearing?
A custom page template usually fails to appear because it is in the wrong theme, lacks a valid template name, is not in the active child theme, or belongs to a block-theme setup that expects HTML templates instead of classic PHP templates. Check the active theme, file location, template registration and the page editor’s Template setting.
Will changing a template change all my pages?
It can. Editing a shared template changes the layout for every page assigned to that template, whereas editing the content of one page changes only that page. Before saving a template, check whether you are editing the default Pages template, a reusable custom template or a page-specific template. Preview another assigned page before publishing.
Should I use a page builder or custom code?
Use a page builder when you need several layouts, visual responsive controls, reusable sections or frequent design changes by non-developers. Use a block theme or child-theme template when the layout is simple and you want fewer dependencies. Custom code gives you control, but you must maintain the template, CSS, mobile behaviour and compatibility after theme or WordPress updates.