Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TT1 Blocks: Add a static homepage template #184

Merged
merged 3 commits into from
Feb 1, 2021

Conversation

scruffian
Copy link
Collaborator

This adds a specific template for the home page, without the page title, so that when its set to be the front page of the site we can hide the title without resorting to CSS.

Follow up to #179

@scruffian scruffian requested review from kjellr and carolinan January 29, 2021 10:38
@scruffian scruffian self-assigned this Jan 29, 2021
@carolinan
Copy link
Collaborator

carolinan commented Jan 29, 2021

Hi
For the template to be selectable in the page attributes in the document sidebar, it also needs to be added to the .json file:

"pageTemplates": {
		"page-home": {
			"title": "Page without title" (or what ever we want here) -
		}
	}

On the root level.
(WordPress/gutenberg#27778)

@scruffian
Copy link
Collaborator Author

Ah I didn't realise that! Thanks. I added a commit for it.

Syncs with the updated json file format, moves pageTemplates.
@carolinan carolinan merged commit 3384ab5 into master Feb 1, 2021
@kjellr kjellr deleted the add/static-home-template branch February 1, 2021 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants