Skip to content

Added no title page template - #149

Open
shail-mehta wants to merge 3 commits into
WordPress:trunkfrom
shail-mehta:add/page-no-title-template
Open

shail-mehta wants to merge 3 commits into
WordPress:trunkfrom
shail-mehta:add/page-no-title-template

Conversation

@shail-mehta

@shail-mehta shail-mehta commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Fixes #143.

Description

Adds a Pages No Title custom page template so editors can build pages from patterns without rendering the page title or featured image on the front end, similar to Twenty Twenty-Four and Twenty Twenty-Five.

Changes

  • patterns/hidden-page-no-title.php - Hidden template pattern (Inserter: no, hidden- prefix) with header, main content area (post-content only), footer, and sticky search bar. Omits the post title and featured image groups used in hidden-page.php.
  • templates/page-no-title.html - One-line delegate to ipsum/hidden-page-no-title, consistent with other page templates.
  • theme.json - Registers the page-no-title custom template for the page post type with the title Pages No Title (aligned with Pages and Pages Sidebar).

Screenshots

after

Testing Instructions

  1. Start the local environment.
  2. Log in at http://localhost:8899/wp-admin/ (admin / password).
  3. Open Appearance → Editor → Templates and confirm Pages No Title appears under page templates.
  4. Create or edit a page, set Template to Pages No Title, add content or insert a page pattern, save, and view on the front end.
  5. On the front end, confirm there is no post title block output and no featured image from the template; header, footer, and sticky search bar match the default page template.
  6. In the page editor, confirm the document title field still shows (expected WordPress behavior).

Use of AI Tools

  • Cursor, for the PR Description

@github-actions github-actions Bot added [Area] Templates Issues or PRs that touch the theme's block templates. [Area] Global Styles Issues or PRs that touch theme.json or the base stylesheet. [Area] Patterns Issues or PRs that touch the theme's block patterns. labels Oct 9, 2026
@shail-mehta
shail-mehta marked this pull request as ready for review October 9, 2026 06:03
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@shail-mehta shail-mehta changed the title Add/page no title template Added no title page template Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Global Styles Issues or PRs that touch theme.json or the base stylesheet. [Area] Patterns Issues or PRs that touch the theme's block patterns. [Area] Templates Issues or PRs that touch the theme's block templates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a No title page template

1 participant