From 71ed072f7c04696d693c800e524dcf531b2f7e3d Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Fri, 26 Apr 2024 20:06:12 +0500 Subject: [PATCH] create no-title page template --- templates/page-no-title.html | 13 +++++++++++++ templates/page.html | 27 +++++++++++++++++---------- theme.json | 7 +++++++ 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 templates/page-no-title.html diff --git a/templates/page-no-title.html b/templates/page-no-title.html new file mode 100644 index 0000000..19b3450 --- /dev/null +++ b/templates/page-no-title.html @@ -0,0 +1,13 @@ + +
+ +
+ + + + + +
+ +
+ \ No newline at end of file diff --git a/templates/page.html b/templates/page.html index 19b3450..97c21ac 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,13 +1,20 @@ - -
- -
- + - + +
+ + + - -
- + + + + + + +
- \ No newline at end of file + + + \ No newline at end of file diff --git a/theme.json b/theme.json index 08d6317..5bece0e 100644 --- a/theme.json +++ b/theme.json @@ -136,6 +136,13 @@ "fontFamily": "var(--wp--preset--font-family--lato)" } }, + "customTemplates": [ + { + "name": "page-no-title", + "postTypes": ["page"], + "title": "Page No Title" + } + ], "version": 2, "$schema": "https://schemas.wp.org/wp/6.5/theme.json" } \ No newline at end of file