WordPress / theme-experiments

Experimenting with themes made out of blocks.
GNU General Public License v2.0
546 stars 180 forks source link

TT1 Blocks: Add a static homepage template #184

Closed scruffian closed 3 years ago

scruffian commented 3 years ago

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

carolinan commented 3 years ago

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. (https://github.com/WordPress/gutenberg/pull/27778)

scruffian commented 3 years ago

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